Location: PHPKode > projects > Nukequiz > html/modules/Nukequiz/admin/NQAResetQuiz.php
<?php
/*****************************************************************/
/* Nukequiz (tm)    v 3.1.0                                		 */
/* By: Kissoftware (hide@address.com)      		     */
/* http://www.kissoftware.org.uk                           		 */
/* http://www.kissoftware.co.uk                       		     */
/* Copyright © 2003-2008 by Kissoftware         				 */
/* See Docs For Information & Credits                 			 */
/* For More information Visit Forums Or The Online Help Manual	 */
/*****************************************************************/
$qid = intval($qid);
$db->sql_query("UPDATE ".$prefix."_nquiz_quiz SET hit_count='0' WHERE qid='$qid'");
$result = $db->sql_query("SELECT quesid FROM ".$prefix."_nquiz_questions WHERE qid='$qid'");
while(list($quesid) = $db->sql_fetchrow($result))
{
$db->sql_query("UPDATE ".$prefix."_nquiz_questions SET hit_count='0' WHERE quesid='$quesid'");
}
Header("Location: ".$admin_file.".php?op=nqviewquizlist");
?>
Return current item: Nukequiz