Jump to content

if's and else if's


searls03

Recommended Posts

how do I make this so that it is more of an & type of thing:

if (isset($bs)){ echo $bs;}  
	 if(isset($ad)){ echo $ad; } else {echo "no events scheduled.";}

 

I don't want it to check if there are any events scheduled with $bs, then it checks with $ad......and I don't want it to be an else if.....I need it to be more of check $ad and $bs, and if no results are returned for either it will display no events scheduled.....does that make sense?

Link to comment
https://forums.phpfreaks.com/topic/235206-ifs-and-else-ifs/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.