RE: [PHP] Why does this work on one server...(Final comment)

2006-03-24 Thread tedd
Richard: I'm not arguing with you, I just want to understand the problem and solution. I said: For storing an image into MySQL I simply used: $image_large = mysql_real_escape_string($buffer); Then for displaying the image, I use: if (get_magic_quotes_gpc()) {

Re: [PHP] Why does this work on one server...(Final comment)

2006-03-24 Thread Robin Vickery
On 24/03/06, tedd [EMAIL PROTECTED] wrote: Storing things in MySQL should not be based upon If you're going to search the field or not. MySQL storage is simply a way to store stuff. It's not that much different than storing things on the file system because all you're storing is 1's and 0's

Re: [PHP] Why does this work on one server...(Final comment)

2006-03-24 Thread Chris Shiflett
If I perform stripslashes first, then the process doesn't work. I usually raise eyebrows with this statement, but you should never (with very, very few exceptions) need to unescape anything. Ever. Richard was pointing out that the only reason you would need to strip slashes after retrieving

Re: [PHP] Why does this work on one server...(Final comment)

2006-03-24 Thread Chris Shiflett
tedd wrote: I usually raise eyebrows with this statement, but you should never (with very, very few exceptions) need to unescape anything. Ever. What's this then? http://us3.php.net/mysql_real_escape_string That's an escaping function. Chris -- PHP General Mailing List

Re: [PHP] Why does this work on one server...(Final comment)

2006-03-24 Thread tedd
tedd wrote: I usually raise eyebrows with this statement, but you should never (with very, very few exceptions) need to unescape anything. Ever. What's this then? http://us3.php.net/mysql_real_escape_string That's an escaping function. Chris A, it pays to read. Thanks -- it's