Forum Moderators: coopster
An error occurred in script /home/landingh/public_html/config.inc on line 13: mysql_real_escape_string() expects parameter 2 to be resource, null given.
Wha? I know what parameters are, but I can't figure this one out. Where the heck is this function?
When I try to run my register.php through a configuration script like this:
<?php # Script 12.3 - config.inc
// This script sets the error reporting and logging for the site.
//error_reporting (0);
// Production level
error_reporting (E_ALL); // Development level
// Use my own error handling function.
function my_error_handler ($e_number, $e_message) {
$message = 'An error occurred in script ' . __FILE__ . ' on
line ' . __LINE__ . ": $e_message";
//error_log ($message, 1, 'myemail@browser.com'); // Production (send email)
echo '<font color="red" size="+1">', $message, '</font>';
//Development (print the error in red)
}
set_error_handler('my_error_handler');
?>