I really don't understand this. I compared this code with similar code from another script I wrote and they are basically the same -- yet it doesn't work on this server. I even tried it on another server (I knew it was going to throw a db error, it wasn't meant to show contents in the db). Here's the code:
<?php
if($_GET['table']) {
if($table == "family") {
family();
} elseif ($table == "accounts");
echo("Accounts");
} else {
echo("Main section.");
}?>
Now am I going crazy or should this code work? The links are just fine, here they are:
<a href="sql.php?table=accounts">Accounts</a> <a href="sql.php?table=courses">Courses</a> <a href="sql.php?table=family">Family</a> <a href="sql.php?table=members">Members</a><br><br>
Now did I miss something and I'm just not seeing it? (I've been working on this script all day long. Other parts that is, this is just one small part 😉). Thanks for any error catching you do. 🙂
Edit: The echo("Accounts") is like that on purpose. I don't have that function created yet so I just have it echo that instead. When I click on "Family" nothing is displayed. Just the links.