Re: [PHP] Image Stored in DB has errors

2003-07-21 Thread Marek Kilimajer
I'm not sure if this solves you problem, but addslashes escapes BOTH single and double quotes. Use str_replace("'", "\\'", ) instead Guru Geek wrote: Hello, I went to bed last night and this was working. I woke up this morning and something has happened or someone has tampered with it. I

[PHP] Image Stored in DB has errors

2003-07-17 Thread Guru Geek
Hello, I went to bed last night and this was working. I woke up this morning and something has happened or someone has tampered with it. I have noticed that the LONGBLOB in the database which stores the actual binary of the image states that it contains 25.3k and the actual 'image_size' field st