View Single Post
Old 04-04-2005, 02:44 PM   #4 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,489
sde is on a distinguished road
here's something else i dug up .. before you insert the image into the database, .. use addslashes and addcslashes.
PHP Code:
$data addcslashes($data"\0"); 
Quote:
the addcslashes function replaces NUL characters with a \0 code because MySQL treats this character as the end of a string.
__________________
Mike
sde is offline   Reply With Quote