I did something like that. I used a two pages. One to display the links, in the loop it made the link url put in the get properties. The other showed the stuff. Never mind. Take my code, I don't mind.
Here is my code to display all the stuff, of course you will have to modify it, I also have some code to make a search and put it in a table, e-mail me if you want it.
<html><head><LINK REL=stylesheet HREF="style.css" TYPE="text/css"></head></html>
click <a href="search.html">Here</a> to search our database.
<br><br><br>
<?php
//Put this here for now
//Connect to the database, or die trying
$dbh=mysql_connect ("localhost", "sharabas_azfc") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("sharabas_zoid");
//Make your query get stuff that's like the search, then the result
$query = "select * from zoid ORDER BY `name`";
$result = mysql_query($query);
//Get the number of rows so we know how many times to loop
$num_row = mysql_num_rows($result);
//Make the loop
for ($a = 0; $a < $num_row; $a++) {
//Get the next row
$row = mysql_fetch_array($result);
//Make an if statement so you know what to color the link is, based on the side
if ($row[3] = "Helic Republic") $class= "helic";
elseif ($row[3] = "Guylos Empire") $class= "Guylos ";
elseif ($row[3] = "Neo-Zenevas") $class= "Neo";
//Make the linking loop
echo"<a href='select_zoid.php?selection=$row[0]' class=$class>$row[0]</a> <br>";
}
?>