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; }
mysql_query("SET NAMES CP1251", $this->connection_id); mysql_query("SET COLLATION_CONNECTION=CP1251_GENERAL_CI", $this->connection_id);