PHP MySQL Image Upload
Hi all,
I have a couple of things I need to be able to do.
I am building a site that sells scanners.
It will be a database-driven site, and so I want to be able to add new products etc. through the web interface.
I have created an admin section where I will be able to do just this - but I do not know how to upload an image to a directory, and insert the location into a mysql field, called image for example.
There is more to it than this - It would be great if on uploading the image, the image is inserted into the folder (i.e. /img/scanners/) - and into the database (i.e. scanners.image) - and then the image is resized to 100px in width, and then that image is inserted into the folder (i.e. /img/thumbs/) and then into the database (scanners.thumbnails).
I really dont think I can explain in much more detail - but all help / suggestions are greatly appreciated.
Thanks for reading my huge request.
D.
|