If you're saying the link doesn't work you also have a problem in this line
Code:
echo "<a href='details.php?id=$id'>Click Here For Details</a><br />";
you need to use some
concatenation for the variable, like so:
Code:
echo "<a href='details.php?id=".$id."'>Click Here For Details</a><br />";
I'm teaching myself php at the moment and I find
Tizag Tutorials quite useful.