01-18-2017, 02:57 PM
I believe something like this should work:
or as if you are staying within the if statement then it would be:
Code:
<a href="profile.php?id=<?=$found;?>"><?=$found->fname." ".$found->lname;?></a><br>
or as if you are staying within the if statement then it would be:
Code:
echo "<a href="profile.php?id=".$found.">".$found->fname." ".$found->lname."</a><br>";