I've got a form with an image upload to mysql working fine on one server, but the same script doesn't work on a different server. One indication that things are going wrong is that if I don't try to upload something, the script still looks for something. So when I echo $photo I get /tmp/phpWhatever and this is even if I didn't select anything with "Browse" - i.e. when I should be getting "none"
The other thing that's strange is that I have a $modified variable set to "item" and a switch case "item" (where sql is run) and it doesn't run If I rem the switch, the binary & etc. get's to the database, but the $photo_type variable is empty.
According to php.ini the files are being uploaded to /tmp/ but there must be some toggles or settings on this server that I do not have set correctly compared to my other server. Please help if you have ANY ideas, I've been going round and round on this for two days.
thanks,
mark