Welcome Guest, Not a member yet? Register   Sign In
[resolved] help please: blank output after "Database Driver Class Initialized"
#2

[eluser]jonw[/eluser]
Well am over one hurdle, PHP did not have MySQL support (currently, installing PHP on FreeBSD 7 RELEASE is not fun, so I overlooked this). I was wondering why the call to mysql_connect() in system/database/drivers/mysql.php has errors suppressed?

Changing function db_connect() to;

Code:
function db_connect()
{
  if ( ! function_exists( 'mysql_connect' ) )
  {
    log_message('error', 'mysql_connect() does not exist - PHP compiled without MySQL support?');
  }
  else
  {
    return @mysql_connect($this->hostname, $this->username, $this->password, TRUE);
  }
}

... would not only have alerted me to the fact, but also the script would have continued execution and then the "A Database Error Occurred Unable to connect to your database server using the provided settings." message would have appeared in the browser window, adding more clues.


Messages In This Thread
[resolved] help please: blank output after "Database Driver Class Initialized" - by El Forum - 09-05-2008, 12:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB