Programming Resources
Uploading and viewing images with PHP and a mySQL database
How to upload an image into a mySQL database, and display the image from the database in a web page.
Database setup
The field to receive the image needs to of type BLOB or similar (depending on the maximum allowed file size of the image).
User input - specifying and uploading the file
Create a form within the web page, add a file field
<input name='myfile' type='file'>
The action will be a PHP file, and type will be 'POST'.
fearntech
© 2001-2008 Fearntech Limited. All rights reserved.