Mysql查詢記錄總數

$query="select   count(*)   as   TOTAL   from  table  ";    $result=mysql_query($query);    $temp=mysql_fetch_array($result);    echo   $temp['TOTAL'];   //輸出查詢結果(記錄數) 
相關文章
相關標籤/搜索