輸出數據我想獲得一個給定列和輸出他們所有的行,但我的代碼是不工作:PHP:從MySQL列
$result = mysql_query("SELECT Name,Number FROM Users WHERE Customer_ID = 1);
if (!$result) {
die("Query to show fields from table failed");
}
$row = mysql_fetch_assoc($result);
echo $row['Name'];
echo $row['Number'];
^ This code is only displaying the first row, how can I list all the rows?
你錯過了一個「在第一行結束時對初學者。 – Andreas