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). 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){.... 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 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
Archived
This topic is now archived and is closed to further replies.