Is this an operator? I can't find it here.
What does the part "$_POST as $response_id => $response" in the following code means?
// If the questionnaire form has been submitted, write the form responses to the database
if (isset($_POST['submit'])) {
// Write the questionnaire response rows to the response table
foreach ($_POST as $response_id => $response) {
$query = "UPDATE mismatch_response SET response = '$response' WHERE response_id = '$response_id'";
mysqli_query($dbc, $query);
}
echo '<p>Your responses have been saved.</p>';
}
Edit: Another qn here. Why is there an additional line "mysqli_query($dbc, $query); " which seems to do nothing? This piece of code is gotten from a book's source code.