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())
{
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
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
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
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
5 matches
Mail list logo