mysql數據庫讀取數據?
要先連接服務器 ,再選擇數據庫mysql_connect("localhost","username","password")
;mysql_select_db("2007"); $sql=mysql_query("select * from news_news order by id desc"); $n=1; while(($row=mysql_fetch_array($sql)) && $n
要先連接服務器 ,再選擇數據庫mysql_connect("localhost","username","password")
;mysql_select_db("2007"); $sql=mysql_query("select * from news_news order by id desc"); $n=1; while(($row=mysql_fetch_array($sql)) && $n