我看到一個查詢的一整行的回聲整行。然而,當我之前使用和mysql_fetch_row()函數不返回整個行
print_r(mysql_fetch_assoc($result));
while循環,我可以看到顯示:
Array (
[client_id] => 1
[contact_first_name] => carla
[contact_last_name] => clausen
[business_name] => Banana Belt Liquors
[business_address] => 300 U.S. 24 Woodlan
[business_address2] =>
[business_city] => Woodland Park
[business_state] => Colorado
[business_zip] => 80863
[business_areaCode_phone] => 719
[business_phone] => 687
[business_phone2] => 9757
[business_url] => http://bananabeltliquors.com/
[business_email] => [email protected]
)
你的線'回聲 「
看看你的vardump ...你看到該數組中的任何數字鍵嗎?我也不...試試'echo「
此擴展從PHP 5.5.0起已棄用,並且將來會被刪除。相反,應該使用MySQLi或PDO_MySQL擴展。另請參閱MySQL:選擇API指南和相關FAQ以獲取更多信息。 http://bg2.php.net/manual/en/function.mysql-fetch-row.php –