I've create a search.php and it is already connected on database. I want the result to be clickable. for example, when you search a name on facebook, the result is clickable and then when you click it, it will directly go to user's profile. what code will i add? Here is my code:
$sql="SELECT schoId, schoSurname, schoFirstname FROM tblscholar WHERE schoSurname LIKE '%" . $name . "%' OR schoFirstname LIKE '%" . $name ."%'";
$result=mysql_query($sql) or die(mysql_error());
while($row=mysql_fetch_array($result)){
$schoSurname=$row['schoSurname'];
$schoFirstname=$row['schoFirstname'];
$schoId=$row['schoId'];
echo $row["schoSurname"];
echo $row["schoFirstname"];