Php Array Problem [SOLVED] - Programming - Nairaland
Nairaland Forum › Science/Technology › Programming › Php Array Problem [SOLVED] (904 Views)
1 Reply
| Php Array Problem [SOLVED] by adewasco2k(op): 9:29am On Aug 23, 2013*. Modified: 2:29pm On Aug 23, 2013 |
hi mates, i just cant get the right approach to this problem, i have two arrays . 1. $attendance which has the following keys and values
This is coming from a checkbox if checked value is 1 else value is 0 The second array is $remarks
Now this is what the key 1- 7 stands for the script is for employee's attendance the key 1-7 is the employeeID in the employee table in my database. Now what i want to achieve is concatenate the array in such a way to look like this
i already did it in a such a way that i first insert the attendance placing the remark as NULL then insert remarks as an update but i want a way to concatenate them and send it at once. I hope somebody can understand what i want Update Just incase this might help, the template looks like this
the template has an hidden checkbox checked with value of 0 and having same name with the other visible checkbox, so if the main checkbox is check the value will be 1 from the main check box otherwise value will be 0 following now is the text field name remark. Just to add, the names on the picture below are fake and not real names just dummy data from my database ![]() SOLUTION:
|
Please Help With An Array Problem • Simple Array Problem In Php • Converting Picture To Byte Array(blob) And Back To Picture • 2 • 3 • 4
How To Use Webservice Wsdl File In PHP • 5 Blogs That Can Tell You About Whats Going On In The Programming World • Is Programming A Dead End Job? What Are Your Thoughts?
