Any hint as to why this wont work? I am adding a "safe" function to the class, and I am not sure why this wont work for me???
function safe($string)
{
return mysql_real_escape_string($string, $this->__myConnection);
}
but yet It throws an error:
Warning: mysql_real_escape_string() expects parameter 2 to be resource, object given in /var/www/sites/yeagernorth.com/management/_mysqlconnection.class.php on line 143
which is the return line above.
the connection should be open immediately since I am instantiating with:
$db = new dbConnection($GLOBALS['dbhost'], $GLOBALS['dbuser'], $GLOBALS['dbpass'], $GLOBALS['dbdatabase'],true);
echo $db->safe("asdadsdasd");
i dont get it... now of course, I have about 16 hours of work under my belt already on mind numbing stuff and am tired, so who knows.