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'"); |
- |
|
48 |
|
47 |
|
49 |
$this->db_connect_id = ($this->persistency) ? mysql_pconnect($this->server, $this->user, $this->password) : mysql_connect($this->server, $this->user, $this->password); |
48 |
$this->db_connect_id = ($this->persistency) ? mysql_pconnect($this->server, $this->user, $this->password) : mysql_connect($this->server, $this->user, $this->password); |
50 |
|
49 |
|
51 |
if( $this->db_connect_id ) |
50 |
if( $this->db_connect_id ) |
52 |
{ |
51 |
{ |