diff --git a/config/rollover.php b/config/rollover.php index 0ac0127..a9c8499 100644 --- a/config/rollover.php +++ b/config/rollover.php @@ -68,9 +68,11 @@ $q=mysql_query("SELECT * FROM config WHERE year='$currentfairyear'"); echo mysql_error(); while($r=mysql_fetch_object($q)) - mysql_query("INSERT INTO config (var,val,description,year) VALUES ( + mysql_query("INSERT INTO config (var,val,category,ord,description,year) VALUES ( '".mysql_escape_string($r->var)."', '".mysql_escape_string($r->val)."', + '".mysql_escape_string($r->category)."', + '".mysql_escape_string($r->ord)."', '".mysql_escape_string($r->description)."', '".mysql_escape_string($newfairyear)."')"); diff --git a/questions.inc.php b/questions.inc.php index 4b3d5ed..2a36565 100644 --- a/questions.inc.php +++ b/questions.inc.php @@ -173,7 +173,7 @@ function questions_update_question($qs, $year) function questions_save_new_question($qs, $year) { mysql_query("INSERT INTO questions ". - "(question,type,section,db_heading,required,ord,year) VALUE(". + "(question,type,section,db_heading,required,ord,year) VALUES (". "'".mysql_escape_string($qs['question'])."',". "'".mysql_escape_string($qs['type'])."',". "'".mysql_escape_string($qs['section'])."',".