fetch_array(MYSQLI_USE_RESULT)){ $tb.=" ".$r[number]." ".$r[shipper]." ".$r[cnee]." ".$r[po]." ".$r[invoice]." ".$r[pol]." ".$"/>
PHP头条
热点:

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


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);

www.phpzy.comtrue/phprm/52576.htmlTechArticlephp输出数据,无法desc解决方法 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]." ".$...

相关文章

PHP之友评论

今天推荐