Soldato
- Joined
- 12 Feb 2006
- Posts
- 17,643
- Location
- Surrey
having troulbe with the file upload part of my website. im trying to get it so that a person has to select a category and then upload up to 6 images for that category. then have the images stored in upload folder, and have the image name and category stored in database so that i can have a page load image that are for that category. now i got the category working, along with suggestions of new categorys getting stored. The trouble i was having is that i couldn't get the multiple image to work or to have it so atleast one image needs to be uploaded so i have decided to start again with my code.
Im asking of ways in which i can it so that atleast the first image has to be uploaded into the upload folder, the rest being optional and then it stores the name of the image(s) and what category they are for.
any advice on this or a better way to do it? was thinking instead have it like directory and that the person would navigate to a page and then the image just uploads to the folder for that page, and not store any category in mysql as it woudlnt be needed. Reason i haven't tried this already is because i want it to people can suggest new category while uploading an image. hmm thinking about it now i think i will try this as i can just do a form that people fill out without uploading images so that the user suggest the new category first.
Im asking of ways in which i can it so that atleast the first image has to be uploaded into the upload folder, the rest being optional and then it stores the name of the image(s) and what category they are for.
any advice on this or a better way to do it? was thinking instead have it like directory and that the person would navigate to a page and then the image just uploads to the folder for that page, and not store any category in mysql as it woudlnt be needed. Reason i haven't tried this already is because i want it to people can suggest new category while uploading an image. hmm thinking about it now i think i will try this as i can just do a form that people fill out without uploading images so that the user suggest the new category first.
Last edited: