作者JoeHorn (狮子男)
看板PHP
标题Re: [请益] 读不到资料
时间Thu Nov 8 17:13:01 2007
※ 引述《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