Re: Re: [Bulk] Fwd: Re: [PHP-WIN] Error: Not a proper resource --- with code this time!

From: Date: Mon, 17 Jan 2011 04:55:03 +0000
Subject: Re: Re: [Bulk] Fwd: Re: [PHP-WIN] Error: Not a proper resource --- with code this time!
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-30469@lists.php.net to get a copy of this message
Am 17.01.2011 03:24, schrieb Bill Mudry:
When I tried this, I found more information on mysql_real_escape() at: http://php.net/manual/en/function.mysql-real-escape-string.php With this proof that it is a valid function, it is hard to understand the error I got when I used your second suggestion. I was surprising: Fatal error: Call to undefined function mysql_real_escape() in
Sorry, my mistake. Of course, the function is called mysql_real_escape_string(), not mysql_real_escape(). You'll have to replace that in your source code. And please note that it's not single-quotes with the table- and column-names, but the grave accent. What I also noticed: You're using
//ECHO "Session variable for species name is - {$_SESSION['species_name']}"; //Debug statement
but also
$speciesname = $_SESSION["speciesname"];
Which one is the correct spelling of the array index?

« previous php.windows (#30469) next »