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 == ""){} Quote 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 Quote 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.... Quote Link to comment https://forums.phpfreaks.com/topic/21667-elseifaction-view/#findComment-96743 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.