1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

Updates related to message.php and transaction update

git-svn-id: file:///svn/phpbb/trunk@547 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen
2001-07-03 22:50:56 +00:00
parent 356f845abc
commit bed1d3ab9a
3 changed files with 18 additions and 16 deletions

View File

@@ -42,10 +42,9 @@ switch($dbms)
// Make the database connection.
$db = new sql_db($dbhost, $dbuser, $dbpasswd, $dbname, false);
if(!$db)
if(!$db->db_connect_id)
{
$db_error = $db->sql_error();
error_die(SQL_CONNECT, $db_error['message']);
message_die(CRITICAL_ERROR, "Could not connect to the database");
}
?>