Jump to content

[SOLVED] if statement


bftwofreak

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.