-2
需要以下腳本的幫助。它在php中只顯示「Resource id#5」。腳本(PHP&Mysql)
$some_q = "SELECT SUM(Bank) AS 'count_bank' FROM players";
$results = mysql_query($some_q);
while($row = mysql_fetch_array($results)){
echo $row['count_bank'];
}
嘗試mysql_fetch_assoc –
不清楚,什麼導致你期待 –
'mysql'已過時,使用'mysqli'。 –