换了个空间,结果以前好好的网页显示不了结果。 select * from classmate where gender='女同学' 估计问题出在 女同学 身上 在连接文件中加入这句话就行了 mysql_query("set names utf8");