Hi,
At the moment my member search works, however when I search for a member called ‘Will’ it gives the result ‘Sam’ first because in his biography he has the work Will, and he is above Will in the MySQL table. Is there a way to give the results that usernames match first, then the results that the biographies match. Here is a link t my search bar: http://www.blu-byte.co.cc/members/search/quick.php/. Try searching for Will, you will see what I mean.
Here is my current search code:
[php]
$searchqu = mysql_query(“SELECT * FROM $tbl_name WHERE usr OR bio LIKE ‘%$search%’”);
//Draw table titles
echo “
”; echo " Name ";echo “ | ”;”; echo " Biography ";echo “ | ”;
”; echo " $usr ";echo “ | ”;”; echo " $bio ";echo “ | ”;
}
[/php]
Many thanks in advance.