Multiple image uploads
|
01-23-2005, 05:32 AM
(This post was last modified: 01-23-2005 05:41 AM by Jonathan.)
Post: #1
|
|||
|
|||
Multiple image uploads
I recently started learning PHP, so I\'m what you could call a big n00b at it still. Nonetheless , I\'m trying to create something...
What I want to achieve: I want to have a script with 4 upload fields & 1 submit button to simultaniously upload 4 images to a folder somewhere on the server. - Done, no problem But I also need the filename of each image to be stored in the database in a different row, under the same ID - Not done, and my big problem (see image below for some more clarification) Some extra info: Let\'s assume our files are image1.jpg, image2.jpg, image3.jpg & image4.jpg The script uploads the files and inserts their filename in the database, but it inserts: - image1.jpg under row image0 in id 4 - image2.jpg under row image1 in id 5 - image3.jpg under row image2 in id 6 - image4.jpg under row image3 in id 7 (see image below for some more clarification) This is what I have for my database, I fear the problem may lie here? Code: CREATE TABLE test ( This is my php code so far Code: <html> I know there\'s no virtually no validation yet, but my first priority is to get it to work. If there\'s anyone that can help me, please have a look because I\'m in dire need of this script! Thanks in advance. |
|||
01-23-2005, 06:02 AM
Post: #2
|
|||
|
|||
RE: Multiple image uploads
Spunge = Ownage.
I can\'t help you, but I do like multiple image uploaders. |
|||
01-23-2005, 06:38 AM
(This post was last modified: 01-23-2005 09:06 AM by Jackeh.)
Post: #3
|
|||
|
|||
RE: Multiple image uploads
Code: <html> try something like that, i havnt tested it and its just off the top of my head really, but its a basic idea.. or something:\\ |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)