Inserting multiple records from single form


Posted on 16th Feb 2014 07:03 pm by admin

I've found a number of threads that deal with this issue, but I'm new to php and coding language so I don't quite understand what they're talking about or what the code means.
Here's the situation: I have a form with 4 rows and the user will enter a unique record into each row. I would like each row to be entered into the database, but if the row is left empty then I obviously do not want an empty record entered into the database.

I've thought about each input being numbered (1name, 2name, 3name, 4name; 1 address, 2address...)
But in the threads I searched I came across things like array, mysql_fetch, and isset that might be helpful. I'm looking into what they do to see if they could help.

I will post some code once I get a nudge in the right direction.

No comments posted yet

Your Answer:

Login to answer
346 Like 11 Dislike
Previous forums Next forums
Other forums

Check if another session of the page is running?
I want to keep people from opening multiple tabs, or sessions of my Facebook app. Is it possible to

simple ping code
been searchin the site/web and found code thats simple but doesnt work.

I have a personal we

Online Event Ticket Sales
Has anyone wrote a script for online tickets sales?

I have been googling and found lots of th

Material Issuing for receiving batch
Dear All experts in MM/ PP,

Material issuing from main stores to factory is currently usi

mail() problem
Hi Guys,

I've set up a contact email form. It sends the information fine, but it sends it to

How could I do this?
Ive got a simple lottery game, and am using an sql database to keep track of the numbers bought. But

Putting double spaces instead of single spaces
Im looking at trying to replace all single spacing between fields with double spacing

At pres

How would I convert this into code using an if statement?
ES equals exam score m equals $mean s equals $total. I already coded my mean and total so I'm not g

HTML Viewer HIDE scrollbar
How can I disable scrollbars in a HTML Viewer control? I can't hide them. Even i have enough space b

close site for maintenance
i get a tutorial, saying the following code can put our site offline, and only the developer can vie

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash