brown2005 Posted September 22, 2006 Share Posted September 22, 2006 with elseif can u haveelseif($action == "view") or ($action == "")or something similar?or do i needelseif($action == "view"){}elseif($action == ""){} Link to comment https://forums.phpfreaks.com/topic/21667-elseifaction-view/ Share on other sites More sharing options...
Daniel0 Posted September 22, 2006 Share Posted September 22, 2006 [code]else if($action == 'view' || $action == 'something_else'){}[/code]The code inside the block will be run if $action is view or something_else.[code]else if($action == 'view'){}else if($action == 'something_else'){}[/code]The code inside block 1 will be run if $action is view and the code inside block 2 will be run if $action is something_else Link to comment https://forums.phpfreaks.com/topic/21667-elseifaction-view/#findComment-96735 Share on other sites More sharing options...
brown2005 Posted September 22, 2006 Author Share Posted September 22, 2006 else if($action == 'view' || $action == 'something_else'){}thank you very much...exactly what I wanted.... Link to comment https://forums.phpfreaks.com/topic/21667-elseifaction-view/#findComment-96743 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.