Location: PHPKode > projects > Internet Vocabulary Trainer > webvoctrainer-0.1/query_confirm.php
<?php 
include "checkuser.php";
include "dbfunc.php";

openDB();

for ($i=0; $i<count($_POST['vocId']); $i++)
  if (!mysql_query('UPDATE words SET box='.$_POST['vocBox'][$i].',date=FROM_DAYS(TO_DAYS(CURDATE())+'.pow(2,(int)($_POST['vocBox'][$i])).') WHERE id='.$_POST['vocId'][$i].';')) echo "problem";

closeDB();
header("Location: http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/main.php");

?>
Return current item: Internet Vocabulary Trainer