diff --git a/helper.inc.php b/helper.inc.php index 3926ad68..23e27021 100644 --- a/helper.inc.php +++ b/helper.inc.php @@ -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 } }