Northern Flame Posted July 21, 2007 Share Posted July 21, 2007 I have a quick question on using || which one of these is correct, 1st or second? 1. <?php if($page != $links || $gen || $adm){ ... } or 2. <?php if($page != $links || $page != $gen || $page != $adm){ ... } Quote Link to comment Share on other sites More sharing options...
Crew-Portal Posted July 21, 2007 Share Posted July 21, 2007 Niether you will get an $end error Quote Link to comment Share on other sites More sharing options...
MadTechie Posted July 21, 2007 Share Posted July 21, 2007 2nd if you add ?> to the end! Quote Link to comment Share on other sites More sharing options...
Northern Flame Posted July 21, 2007 Author Share Posted July 21, 2007 oh, thanks. So I guess I will have to write an "if" statement for each... Quote Link to comment Share on other sites More sharing options...
Northern Flame Posted July 21, 2007 Author Share Posted July 21, 2007 oh yea i know i need to add ?> Quote Link to comment 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.