Re: [請益] 讀不到資料

看板PHP作者 (獅子男)時間18年前 (2007/11/08 17:13), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
※ 引述《quota (怎樣轉移檔案?)》之銘言: 網頁內容應該是這樣(黃色的部份是要增加進去的): <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> <?php mysql_query("set names utf8"); mysql_query("character set utf8"); mysql_query("set character_set_client =utf8"); mysql_query("set collation_connection=utf8_general_ci"); mysql_query("set character_set_results =utf8"); mysql_query("set character_set_server = utf8"); mysql_query("set character_set_connection=utf8"); mysql_connect ('localhost','abcd','sir'); $sql_select="select * from faq_utf8 "; $result = mysql_db_query ('old', $sql_select); while ($row = mysql_fetch_object ($result)) { echo $row->title; //echo $row->fullname; echo "<hr>"; } mysql_free_result ($result); ?> </body> </html> -- Leo [joehorn]:~> make one lover for me make: don't know how to make one. Stop Leo [joehorn]:~> why? why?: No match. -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 163.18.56.221
文章代碼(AID): #17CjCV6I (PHP)
討論串 (同標題文章)
文章代碼(AID): #17CjCV6I (PHP)