I've used a php script for image uploading several times with my previous host (powweb). Now I'm trying the same script with DH. Unfortunately, it's not working ... very weird as I can see that the image name, image type, image size, image height, image height, all the fields are getting inserted in the database properly (image data I can't check as it's blob), but the image is still not getting displayed.
Basically there are two files that's doing the work. One file holding a script to upload image, and the other file to fetch image for displaying. I have tried to upload image directly thro' the phpmyadmin, and that works. it shows that the file that fetches image from the database to display in the web, is working perfectly.
I am wondering if I am doing any mistake myself uploading the image ... here is the script that I'm using for this work. Can anyone check and tell me why it's not working? Or may be there's some DH related issue that I don't know.
//prepare for database insert by adding backslashes before special characters
$photo = "UPDATE $image_base SET
Error updating the image. Error: '. mysql_error() .'
Thanks a lot guys.
Web's ultimate debate center - www.SharpDebate.com