/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
foreach ($_REQUEST as $key => $value) { if($value != ""){$requestnumber ++;} //echo $key. ' - '.$value.'</br>'; //echo "I have a course key " . $value.'</br>'; $sql=" UPDATE `xxx` SET `xxx`='1'WHERE `xxx` = '$value' "; $result=doSQL($sql); } }