hello,
I am having a syntax problem with my if/elseif statement.
What i need is to display the variable depending on 3 circumstances, and i get the AND circumstance to work. What am i doing wrong?
if ($state)
{
$specs = "event_state = '".$state."'";
}
elseif ($city)
{
$specs = "event_city = '".$city."'";
};
elseif (($city) && ($state))
{
$specs = "event_city = '".$city."' AND event_state = '".$state."'";
};
the first two work, but not the third part.......help
thanks,
-Michael