php 查询汉字怎么查不出来?

php 查询汉字怎么查不出来?

在线等,php查询汉字查询不出来?<form>
用户名:<input type="text" name="text">
<input type="submit" name="ok" value="查询">
</form>
<?
   $k="select * from student where name='$_POST['text']'";
?>
怎么查询不出来?写成数字或者字母就可以了。
希望高手提点。

貌似是乱码问题!~~
我的Blog

mysql_query("SET NAMES 'utf8'");

在查询之前,插入以上代码。utf8改为你需要的编码。