1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-07 06:55:25 +02:00

SET NAMES on the MySQL 4.1.2+ DBs

git-svn-id: file:///svn/phpbb/trunk@6385 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M 2006-09-23 02:54:17 +00:00
parent 0f8630e077
commit 786b34e4d3
2 changed files with 2 additions and 0 deletions
phpBB/includes/db

@ -49,6 +49,7 @@ class dbal_mysql4 extends dbal
{
if (@mysql_select_db($this->dbname))
{
@mysql_query("SET NAMES 'utf8'");
return $this->db_connect_id;
}
}

@ -50,6 +50,7 @@ class dbal_mysqli extends dbal
{
if (@mysqli_select_db($this->db_connect_id, $this->dbname))
{
@mysqli_query("SET NAMES 'utf8'");
return $this->db_connect_id;
}
}