php - MySQL 教學 @ [todo Austin] 奧斯丁。土豆 :: 痞客邦 PIXNET ::
接著就準備開始使用mysql的語法了 $sql = "SELECT COUNT(*) as total FROM `FileList` WHERE `class` = 0;"; $result = mysql_query($sql) or die('MySQL query error'); while($row = mysql_fetch_array($result)){ echo $row['name']; } 先用$sql紀錄 這函式就會把$ ......