Hello all,
I'm looking for some Ideas on adding multiple entries to a database within one add record page and any ideas would be greatly appreciated.
My project is an employee time sheet/ Payroll log. Basically, each foreman has about 15 employees on a crew and each crew can work on
multiple jobs in a day. I currently have an "Add record" page that has all the information I need in the database (Employee_Name, Job_Name, Job_Description, Foreman_Name, Date, and Hours_Worked)
How can I be able to enter all the job information and then select the 15 employees from a list or check boxes and have phprunner create a new database entry for each of the selected employees in one shot.
I've noticed that when you select a drop down box with multiple rows option at say 10, you can hold Ctrl while selecting to select multiple names but when submitted to the database, there is only one line
entry and all the names that were selected are added (comma separated) into the "Employee_Name" field of the database.
In order to be able to set up payroll reports and searches effectively, I would need a separate line entry for each employee name.
As it stands, I'm using session variables to hold the values on the "add record" page so the foreman won't have to re-enter All of the job information over and over again, but
the foreman will still have to choose each employee one at a time to be logged into the database and hope that he doesn't omit or duplicate any entries on accident.
Any help ore advice would be great
Thanks
Vince