RE: [PHP] PHP4 mysqli with mysql 4.1.7?

From: Date: Fri, 10 Dec 2004 09:30:31 +0000
Subject: RE: [PHP] PHP4 mysqli with mysql 4.1.7?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-203902@lists.php.net to get a copy of this message
> What happens in your application if you just do: > > mysql_query("SET CHARACTER SET utf8", $connection) or die(mysql_error()); > > right after you connect to the database? Thank you, by adding mysql_query("SET CHARACTER SET utf8", $connection), it works now. However, I am still confused on some issue: 1. Is it possible to set the PHP mysql client to use utf8 as default? In this way, I do not need to modify all of my applications. 2. Why mysqli + 4.1.x is recommended? Francis Mak

« previous php.general (#203902) next »