Hi
I'm using a mySQL DB.
I have a form on my page with effectively 5 rows on it, each with say 3 or 4 fields on it.
So I want to insert all of these 5 rows into the DB at once when the user hits the Save button.
So firstly, how would I name each field on the form?
I assume they can't all be the same name on each row?
So I can't have 'name=date' for a datefield on each row. Does that mean I need to have 'name=date1' and then 'name=date2' etc on the form?
Secondly, once I have all the data and the user hits the Save button, how do I efficiently insert all of that into the database as once?
Thanks ....
I'm using a mySQL DB.
I have a form on my page with effectively 5 rows on it, each with say 3 or 4 fields on it.
So I want to insert all of these 5 rows into the DB at once when the user hits the Save button.
So firstly, how would I name each field on the form?
I assume they can't all be the same name on each row?
So I can't have 'name=date' for a datefield on each row. Does that mean I need to have 'name=date1' and then 'name=date2' etc on the form?
Secondly, once I have all the data and the user hits the Save button, how do I efficiently insert all of that into the database as once?
Thanks ....