my search query is:
SELECT * FROM `trades` where `app` = '1' AND (`unit` LIKE '%$search%' OR `keyword` LIKE '%$search%')
while($row = mysql_fetch_array($sql )){
and after it i need to compare and show like this:
similar_text(strtoupper($search), strtoupper($row['unit']), $similarity_pst);
if (number_format($similarity_pst, 0) > 20){
echo $row['link'];
echo $row['unit'];
echo $row['keyword'];
//....
but i want before print value, sort all of in $row by percent on top 90% and then show 80 ...70% and can show with pagination thanks