fetch_array(MYSQLI_USE_RESULT)){ $tb.="".$r[number">
当前位置:Gxlcms > PHP教程 > php输出数据,无法desc解决方法

php输出数据,无法desc解决方法

时间:2021-07-01 10:21:17 帮助过:5人阅读

php输出数据,无法desc
PHP code
query($sql);    $tb="";    while ($r=$q->fetch_array(MYSQLI_USE_RESULT)){        $tb.="".$r[number]."".$r[shipper]."".$r[cnee]."".$r[po]."".$r[invoice]."".$r[pol]."".$r[pod]."            ".$r[dest]."".$r[vessel]."".$r[bookingDate]."".$r[receivedBooking]."".$r[confirmSpace]."";    }?>    
編號 出貨人
編號 出貨人


sql代码见上,但是无法让结果,倒述啊。是何原因,在mysql单独执行那条语句是正确的(desc),就是通过while输出时,仍为asc,这是何故啊??

------解决方案--------------------
while ($r=$q->fetch_array(MYSQLI_USE_RESULT))
MYSQLI_USE_RESULT
------解决方案--------------------
$r=$q->fetch_array(MYSQLI_ASSOC);

人气教程排行