Re: [請益] 讀不到資料
※ 引述《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
討論串 (同標題文章)
PHP 近期熱門文章
PTT數位生活區 即時熱門文章
151
156