Line 42... |
Line 42... |
42 |
$this->persistency = $persistency; |
42 |
$this->persistency = $persistency; |
43 |
$this->user = $sqluser; |
43 |
$this->user = $sqluser; |
44 |
$this->password = $sqlpassword; |
44 |
$this->password = $sqlpassword; |
45 |
$this->server = $sqlserver; |
45 |
$this->server = $sqlserver; |
46 |
$this->dbname = $database; |
46 |
$this->dbname = $database; |
- |
|
47 |
mysql_query("SET NAMES 'utf8'"); |
47 |
|
48 |
|
48 |
$this->db_connect_id = ($this->persistency) ? mysql_pconnect($this->server, $this->user, $this->password) : mysql_connect($this->server, $this->user, $this->password); |
49 |
$this->db_connect_id = ($this->persistency) ? mysql_pconnect($this->server, $this->user, $this->password) : mysql_connect($this->server, $this->user, $this->password); |
49 |
|
50 |
|
50 |
if( $this->db_connect_id ) |
51 |
if( $this->db_connect_id ) |
51 |
{ |
52 |
{ |