Показать сообщение отдельно

  #11  
Старый 16.11.2007, 14:20
groundhog
Познавший АНТИЧАТ
Регистрация: 12.05.2007
Сообщений: 1,235
С нами: 9999746

Репутация: 1318


По умолчанию

Не знаю какая у тебя версия, но попробуй в файл class_dbmysql.php в определении метода connect() у класса db_driver после строк:

PHP код:
if ($this->obj['persistent'])
        {
            
$this->connection_id mysql_pconnect$this->obj['sql_host'] ,
                                                   
$this->obj['sql_user'] ,
                                                   
$this->obj['sql_pass'
                                                );
        }
        else
        {
            
$this->connection_id mysql_connect$this->obj['sql_host'] ,
                                                  
$this->obj['sql_user'] ,
                                                  
$this->obj['sql_pass'
                                                );
        }
        
if ( ! 
$this->connection_id )
        {
            
$this->fatal_error();
            return 
FALSE;
        } 
вставить такие строчки:

PHP код:
mysql_query("SET NAMES CP1251"$this->connection_id);
mysql_query("SET COLLATION_CONNECTION=CP1251_GENERAL_CI"$this->connection_id); 
 
Ответить с цитированием