我的搜索查询是:
SELECT * FROM `trades` where `app` = '1' AND (`unit` LIKE '%$search%' OR `keyword` LIKE '%$search%')
while($row = mysql_fetch_array($sql )){
之后我需要像这样比较和显示:
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'];
//....
但我想在打印值之前,按 90% 的百分比对 $row 中的所有内容进行排序,然后显示 80 ...70% 并且可以显示分页谢谢