How can i make the $row[‘Fname’] to be a link and when i click it, redirect me to a new page with more info about this entry i clicked?
here is the code:
echo '<ol>';
while ($row = mysql_fetch_array($sql)){
echo '<li>';
echo '<img src="'.$row['Bio']. '" alt="" width="110" height="110">';
echo ' <dl>';
echo ' <dt>Name</dt>';
echo ' <dd>'.$row['Fname'].'</dd>';
echo ' <dt>Genre</dt>';
echo ' <dd>'.$row['Genre'].'</dd>';
echo ' <dt>Speciality</dt>';
echo ' <dd>'.$row['Specialty'].'</dd>';
echo ' </dl>';
echo '</li>';
}
echo '</ol>';
just wrap it using
and then in the pageyouwant.php just grab that variable using
$_GET['fname']pageyouwant.php
Using this in php, you can get all the info regarding the fname 🙂
And then you’re all set 🙂