Use PDO::error_string instead of mysql_error
This commit is contained in:
parent
e90024c0d0
commit
ce6f8da098
|
@ -81,7 +81,7 @@ function dbLog( $sql, $update=false )
|
|||
|
||||
function dbError( $sql )
|
||||
{
|
||||
Fatal( "SQL-ERR '".mysql_error()."', statement was '".$sql."'" );
|
||||
Fatal( "SQL-ERR '".$dbConn->errorInfo()."', statement was '".$sql."'" );
|
||||
}
|
||||
|
||||
function dbEscape( $string )
|
||||
|
|
Loading…
Reference in New Issue