bftwofreak Posted July 9, 2008 Share Posted July 9, 2008 I've typed up this if statement: if ($_GET['page'] = 'members') { OpenTable(); echo '<div style="margin-left: 15px; margin-right: 15px">'; echo $page_extra1; echo '</div>'; CloseTable(); } The OpenTable(); and CloseTable(); are custom functions and they do what the function is named. The problem exists that when the url has page=lawbook the table still exists. I for some reason cannot get rid of the table under any other variable. Any suggestions welcome. Link to comment https://forums.phpfreaks.com/topic/113844-solved-if-statement/ Share on other sites More sharing options...
cooldude832 Posted July 9, 2008 Share Posted July 9, 2008 = is not a comparator operator its == or === Link to comment https://forums.phpfreaks.com/topic/113844-solved-if-statement/#findComment-585026 Share on other sites More sharing options...
bftwofreak Posted July 9, 2008 Author Share Posted July 9, 2008 such a simple mistake, but that's what causes the errors. Thanks. Works perfectly now Link to comment https://forums.phpfreaks.com/topic/113844-solved-if-statement/#findComment-585027 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.