and BLOB is like TEXT, except for comparison is case sensitive in BLOB.
And what if the file contains malicious code - it might come from remote user's upload
Sterling Hughes wrote:
Read the file, addslashes(), and then insert itRather, read the file, don't touch addslashes, then insert it.
AddSLashes is not for binary data...
-Sterling
Naif Al-Otaibi wrote:
How can I insert a file into a binary field in sql server 2000. Do I need some function in the query like upload or just read the file and insert it.--
Thanks,
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php