Thank you for the reply 🙂
Here is a simple example code of what I try to do:
<?php
echo "<table width=\"200\" border=\"1\">";
mysql_connect("host","user","pass");
mysql_select_db("dbname");
$fetdat = mysql_query("SELECT faculty_id, faculty_fullname, faculty_nationality FROM faculty WHERE faculty_interests LIKE '%IMP%'");
while($fetarr = mysql_fetch_array($fetdat)) {
$fid = $fetarr['faculty_id'];
$fname = $fetarr['faculty_fullname'];
$fname = str_replace(" ", "-", $fname);
$fnat = $fetarr['faculty_nationality'];
echo "<tr>
<th scope=col>$fid</th>
<th scope=col><a href=facdets/".$fid."-".$fname."-".$fnat.">".$fname."</th>
<th scope=col>$fnat</th>
</tr>";
}
echo "</table>";
?>
that would disply a huge amount of data like this:

Now when I open http://localhost/facs/facdets/2548-George-Wolberg-US I need to extract 2548 and using that I search inside db. How can I write such a code?