Move error logs to error_log console

This commit is contained in:
patrick 2025-02-10 02:57:47 +00:00
parent 4a19fefe79
commit 8c815d8dc0

View File

@ -44,7 +44,7 @@ function show_pdo_errors_if_any($pdo)
$errorInfo = $pdo->errorInfo();
if ($errorInfo[0] != '00000') {
// If there's an error (the SQLSTATE isn't '00000', which means no error)
echo 'Error: ' . $errorInfo[2]; // The third element contains the error message
error_log('Error: ' . $errorInfo[2]); // The third element contains the error message
}
}