i'm using this code to display the latest 5 entries from a database on my website. Now i want to show the $result as links to ex. pedigree.php?id=$resultname$&db=pedigree&gens=5. How to do that?
<?php
$result = mysql_query("SELECT Name FROM pedigree ORDER BY PedigreeId DESC LIMIT 5");
while($row = mysql_fetch_row($result))
echo $row[0].'<br />';
?>
Thanks a lot for your help!