Jump to content

If inside an if?


unidox

Recommended Posts

Well I am going to use elseif, like....

 

if (($_GET['s'] == 'news') && (in_array("news", $array))) {

  do something

} elseif (($_GET['s'] == 'threads') && (in_array("news", $array))) {

  do something

} else {

  echo "Sorry, this action was not able to be performed.";

}

 

I want to add an elseif ($error) { echo "You do not have access."; }

Link to comment
https://forums.phpfreaks.com/topic/112231-if-inside-an-if/#findComment-576186
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.