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

Lars Mueller <[email protected]>
Newsgroups gmane.comp.php.windows
Message-ID <[email protected]>
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?

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.