Joined
Last Seen
0 Reputation Points
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 2
- Posts with Downvotes
- 1
- Downvoting Members
- 2
0 Endorsements
Ranked #107.41K
ALTERNATIVE CODE <?php // Update present values if (isset($_POST['submit'])) { // Get a list of student ids to check $idsResult = mysql_query("SELECT student_id from students"); $presentIds = array(); $absentIds = array(); while($idRow = mysql_fetch_array($idsResult)) { // If the student's checkbox is checked, add it to the presentIds array. if(isset($_POST['present'.$idRow['student_id']])) { … |