I am not sure how to approach this... I'm not sure how to go about creating and uploading an image database....
I have read a few tutorials how to upload images... but i'm still confused on a few things. If anyone could drop some hints or guidelines, i'd greatly appreciate it!
Right now, this is what i have. A database with user data called 'information'. this database holds information about the user, I need to include a spot for an Image. So when user information is requested it will display an image as well as the users information.
I placed aside, a field in the database for the location of the image on the server. So for each user there is a URL or Path to his/her image.
The number of users and images is expected to grow pretty extensive. Do i have to worry about uploading all images to one directory? or should i write a script that will organize the images to specific directories such as by last name? which is more effiecient?
Also, after the user has submitted their information to the database, i would like to allow them to preview thier page that includes the picture and other information they submitted. I was thinking that i would only need the location of the image on the users computer to display the image on the preview page. The preveiw page does not pull anything from the database but rather uses the session varables created after the user submits thier information..
Sorry this was kinda lenthly in explaining what i am trying to do. i'd just like it to be clear.
I want to be able to accept at least .gif and .jpg files types. and i'd also like to place a limit on the file size. How can i do that?
the users input is validated and inserted into the database on the page following the preview page. and the actual picture upload is not going to be uploaded until after the user previews the data and has verified it. So i assume i am going to have to store the images location on the users computer in a session until i need to upload it to the server...
So, how can i upload the image to the image database?
Also is the Image database simply a directory on the server? linked to the MySQL database by the stored PATH location?
I would greatly appreciate if anyone could help in any way. Thank-you!