estoy de forma localhost me sale el sgte error.
Warning: mysqli_connect() [function.mysqli-connect]: (28000/1045): Access denied for user 'rreeuser'@'146.155.150.177' (using password: YES) in C:\wamp\www\sae\php\dbcontroller.php on line 15
Warning: mysqli_close() expects parameter 1 to be mysqli, boolean given in C:\wamp\www\sae\php\dbcontroller.php on line 455
dbcontroller.php
Código PHP:
<?php
/*
** Class for connecting and manage the mysql database
*/
require_once("constants.php");
require_once("utils.php");
class DBController{
private $link;
public function __construct(){
mb_internal_encoding("UTF-8");
mb_regex_encoding("UTF-8");
$this->link = mysqli_connect(DB_SERVER, DB_USER, DB_PASS,DB_NAME); //linea15
if (mysqli_connect_errno()) {
exit();
}
}
public function __destruct() {
$this->disconnect();
}
....
...
..
.
public function disconnect(){
mysqli_close($this->link); //linea 455
}
};
pero cuando lo ejecuto desde el servidor no pasa esto . sino todo lo cantrario corre de forma normal.
ayuda porfa