Beginners of PHP must have encountered the problem of Chinese garbled characters. I have also encountered it. Now I will share the solution I used with everyone. If anyone has a better solution, please reply.
in=mysql_db_query("lib","select * from mytb",);
Preceded by
mysql_query("set names gb2312"); or mysql_query("set names gbk");