I have created a form that needs the end user to upload an image. This image then needs to be saved into mySQL database into the order form with other information in it.
Any Ideas?
Why does the image need to be stored in the database? It is more efficient to store it in a directory.
In any case, you need to store the image in the database under a BLOB BINARY column.
I agree. It's not considered a best-practice to store the actual image in the db. Upload it to a directory and store the path to the file in the db. It will improve efficiency and keep your db from inflating to unnecessary proportions.
Ah OK.....could you talk me through this code? From the very beginning? I am new at this! Thanks
see this thread , look at the links etc, it should give you some useful info.
I have tried to mimic the code from the above forum by bokeh resulting in my code throwing this error: 'receiving directory insuffiecient permission'
I can see where in the code this error is being thrown but dont understand why. Can you help?
I am using WAMP5 software which reads from the www directory file saved on my C:\ drive rather than an ftp file server
I am now receiving this message:
Forbidden You don't have permission to access /< on this server.