0
我得到了以下內容,但結果中是一個很長的字符串,其中包含的字符串是服務器名稱,我希望對結果進行排序,這可能嗎?使用分解變量對一個while循環進行排序
<?php
$dbQuery = mysql_query("SELECT * FROM opencall where cust_id = '[email protected]' and status < 6 order by fixbyx asc") or die(mysql_error());//find call ref of open call with correct id
while ($PRTGdbresults = mysql_fetch_array($dbQuery)){
$SplitText = explode("\n", $probtext); //split the string by line break
echo'<div class="row">';
echo'<div class="inf_div" title="Current Server">';
echo $SplitText[1]; //this is the server name I wish to sort by
echo'</div></div>';
}
?>
非常感謝! – Maff 2014-12-02 10:37:32