Have a table in a DB with the following:
ID - Primary Key-
Username
Jobnumber
Hours
Have a form with 5 username and dropdowns below each (for the hours per user - each form element is named the same name as the user).
form.php
Example(username):
Bob Terri Fred Pat Bill
form_process.php
When I go to drop these into the one table - each must have its own record. They will all have the same job number on input per form submission.
Whats the best method or technique to use? Sure I can manually do an if and sniff out if a number has been selected, then do an SQL insert on each one in turn, but something tells me theres a smarter way.