資料庫不能顯示中文
connect.php
<?
$host="localhost";
$login="root";
$connect=mysql_pconnect($host , $login);
mysql_select_db("db_black");
mysql_query('utf8',$connect);
?>
index.php
<html>
<head>
<title></title>
<meta content="text/html; charset=UTF-8" http-equiv="connent-type">
</head>
<body>
<form method="post">
<input type="text" name="name">
<input type="submit">
</form>
<?
include_once("connect.php");
$result=mysql_query("insert into test(ass)values('$name')");
?>
</body>
</html>
哪位大大可以幫我看一下哪裡有問題~
name那邊輸入中文,資料庫裡顯示不出來!(其他像是英文或是數字都可以,直接在phpmyadmin上操作sql也可以顯示中文)
所以我想是網頁這邊的問題,麻煩跟我說一下!
拜託了~~卡很久了 T.T