Forum Moderators: coopster

Message Too Old, No Replies

Configuration Script - mysterious error

Well ... Not really ... I think it's just me.

         

Conscientious Reject

5:50 am on Dec 27, 2005 (gmt 0)

10+ Year Member



I created a configuration script.

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');

?>

Conscientious Reject

3:36 am on Dec 28, 2005 (gmt 0)

10+ Year Member



Just keeping this one alive. I am moving to Colorado from Washington tomarrow. And I was hoping to have brainstorm some ideas.

Please Help...