|
@@ -52,11 +52,6 @@ final class mysql {
|
|
|
* @return void
|
|
|
*/
|
|
|
public function connect() {
|
|
|
- print($this->config['hostname']);
|
|
|
- print($this->config['username']);
|
|
|
- print($this->config['password']);
|
|
|
- $this->link=@mysql_connect("192.168.0.130","root","adimysql123",1);
|
|
|
- print($this);
|
|
|
$func = $this->config['pconnect'] == 1 ? 'mysql_pconnect' : 'mysql_connect';
|
|
|
if(!$this->link = @$func($this->config['hostname'], $this->config['username'], $this->config['password'], 1)) {
|
|
|
$this->halt(mysql_error());
|