Hi all,
I have a number of links created...
<a href="index.php" id="home">Home</a>
<a href="index.php" id="about">About</a>
<a href="index.php" id="contact">Contact</a>
Variables are then set...
$home = $_GET['home']; // etc...
I then want to query the database based on which link is selected...
$query = "SELECT * FROM '$table'";
$result = mysql_query($query) or die(mysql_error());
Is an Array best to use for $table??
How do I put all link variables($home, $about, $contact) into the Array and then perform the query relevant to the SELECTED link?
Thanks.
Kevin