Hey there,
I am trying to get an image upload to a database (php mysql) so that users can browse for and then upload an image into the database - then display this image on the next page.
Any help would be appreciated.
Thanks
A few questions are you going to upload the file directly to the database as a BLOB? Or are you only going to store the path to the file?
PHP Manual is a pretty good guide to File Uploads, also a search for File Uploads probably wouldnt go too badly, as there are some solutions especially with Image Uploads.
Thanks for that but it is not making much sense to me at the moment
I have heard good and bad things about both blob and path methods and on the whole prefer to be able to store the image in a designated folder and the path only in the database.
or is the blob method easier ?
The blob method is slower, as the DB needs to read an entire image to PHP. Storing it as the path would be easier.
Can't offer you much help because, as planetsim said, the PHP manual can offer a lot more than we can.