I am trying to update more than 1 row in a dable using the same update.
I have upto 10 hiddenFields, each with an 'INT' value in. Each value refers to a different row in a table called 'screens'
Here is the code:
if ((isset($POST["MM_update"])) && ($POST["MM_update"] == "form2")) {
$updateSQL = sprintf("UPDATE screens SET seat_status='BOOKED' WHERE seat_number=%s", GetSQLValueString($POST['hiddenField0'], "int"),
"AND seat_number=%s", GetSQLValueString($POST['hiddenField1'], "int"));
When executing this, it only updates the first ValueString(hiddenField0) and not the others, in this case hiddenFiled1.
Any ideas on how I can achieve this.
Regards