我有一個MySQL表是這樣的:創建MySQL和存儲陣列在會議
id | name | value
------------------
1 | logo | blahblahblah.png
2 | namestore | blah store
3 | ip | 0.0.0.0
我的問題是如何使用MySQL的獲取該表,然後創建一個PHP調用,例如:
$store->logo (i will get blahblahblah.png)
$store->namestore (i will get blah store)
任何人都可以幫助我嗎?我只是很困惑如何做到這一點
你到目前爲止嘗試了什麼。 – Ravi
http://php.net/manual/en/function.mysql-fetch-array.php –
@LearneR,請不要將新的PHP用戶指向不推薦的'mysql_'函數。 – Charles