maxudaskin Posted November 1, 2007 Share Posted November 1, 2007 <?php if ($_GET['p'] = board){ flights(); }else{ echo 'not board'; } ?> When ever I load the page, be it ?p=board or anything else, flights() is activated (stored on other file). Quote Link to comment https://forums.phpfreaks.com/topic/75682-solved-if-else-not-working/ Share on other sites More sharing options...
raja9911 Posted November 1, 2007 Share Posted November 1, 2007 I think you have to write if ($_GET['p'] == board){.... Quote Link to comment https://forums.phpfreaks.com/topic/75682-solved-if-else-not-working/#findComment-382976 Share on other sites More sharing options...
holladb Posted November 1, 2007 Share Posted November 1, 2007 you need to have == and you also need to require your file that has the flights() function Quote Link to comment https://forums.phpfreaks.com/topic/75682-solved-if-else-not-working/#findComment-382977 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.