How to use If Condition in PHP ?
Posted: Wed Aug 17, 2011 3:50 am
Hi, I need some help figuring out how to have a only print, if the choices within then have data. The evaluation that gives the data is done using if statements. This is the result of the data in the system.
Agents=24,36,34 (these is evaluated using if statements)
Campaigns=0
Team=1
Could you Guide me on how to use IF conditional statements or other conditions like Switch,Choose ?
eg.
if(Agents!="")
{
select * from table where agentID='23'
}
else if(Campaigns!="" || Team!=1)
{
select * from table where CampaignsID='23'
}

How do I go about doing so? or any other solution.
Thank You,
Agents=24,36,34 (these is evaluated using if statements)
Campaigns=0
Team=1
Could you Guide me on how to use IF conditional statements or other conditions like Switch,Choose ?
eg.
if(Agents!="")
{
select * from table where agentID='23'
}
else if(Campaigns!="" || Team!=1)
{
select * from table where CampaignsID='23'
}

How do I go about doing so? or any other solution.
Thank You,