0
I’m trying to upload a local system but it’s not connecting to the database. I’ve already made the settings. I’ll leave the error below if anyone can help me thank.
here and the configuration in the database
line 124 code
// Connect to the database and set the connection ID
$this->conn_id = ($this->pconnect == FALSE) ? $this->db_connect() : $this->db_pconnect();
// No connection resource? Throw an error
if ( ! $this->conn_id)
{
log_message('error', 'Unable to connect to the database');
if ($this->db_debug)
{
$this->display_error('db_unable_to_connect');
}
return FALSE;
}
what’s on the 124 line of db_driver.php ?
– Rovann Linhalis
this with that code Function initialize() { if (is_resource($this->conn_id) OR is_object($this->conn_id)) { Return TRUE; } // Connect to the database and set the Connection ID $this->conn_id = ($this->pconnect == FALSE) ? $this->db_connect() : $this->db_pconnect(); // No Connection Resource? Throw an error if ( ! $this->conn_id) { log_message('error', 'Unable to connect to the database'); if ($this->db_debug) { line --124--> $this->display_error('db_unable_to_connect'); } Return FALSE; }
– Thalis Alison
[Edit] the question and put the code in it... outside the browser message, there is another error message ??
– Rovann Linhalis
ok more see there please answering your other question not only of this error as per the photo
– Thalis Alison
Which version of php vc uses?
– rray
system and 5.3 already easy php do not know
– Thalis Alison
in easyphp 5.6.19
– Thalis Alison