Php connection to mysql garbled solution. Php Tutorial connection mysql tutorial garbled solution garbled common is to directly connect to the mysql database tutorial without setting the encoding of the connection query, commonly used is mysql_query (setnamesg php Tutorial connection mysql tutorial garbled solution
Garbled characters are commonly used to connect directly to the mysql database tutorial without configuring the connection query encoding. generally, mysql_query ("set names 'gb2312'") is commonly used, which is mostly possible, the preceding method cannot solve the problem.
$ Link = mysql_connect ('localhost', 'root ','');
Mysql_query ("set character_set_connetion = utf8, character_set_result = utf8, character_set_client = binary", $ link );
Login connection mysql tutorial garbled solution garbled common is to directly connect to the mysql database tutorial without setting the encoding of the connection query, commonly used is mysql_query (set names 'G...