在確定連接數據庫沒有問題后,試圖獲取表名: public function tables(){? ? $tables = mysql_query("SHOW TABLES");? ? while($tables = mysql_fetch_array($tables)){? ? ? ? echo "表總數:".sizeof($tables);? ? ? ? $tablelist[]=$tables;? ? } return $tablelist; }調用后, 為什么總是只能得到第一個表名?
添加回答
舉報
0/150
提交
取消