Location: PHPKode > projects > Nukequiz > html/modules/Nukequiz/admin/NQANewQuestionSave.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	 */
/*****************************************************************/
$question = nl2br(stripslashes(FixQuotes(check_html($question, "nohtml"))));
$qexplain = nl2br(stripslashes(FixQuotes(check_html($qexplain, "nohtml"))));
$question = ucwords(strtolower($question));
$sol1 = ucwords(strtolower($sol1));
$sol2 = ucwords(strtolower($sol2));
$sol3 = ucwords(strtolower($sol3));
$sol4 = ucwords(strtolower($sol4));
$question = str_replace("'", "\'", $question);
if(isset($ismcq)) $ismcq=1; else $ismcq=1;
if(isset($ismultiple)) $ismultiple=1; else $ismultiple=0;
if(isset($isoe)) $isoe=1; else $isoe=0;
if($question == ""){
include('header.php');
logoheader();
OpenTable();
echo "<br><center><b>"._NQ_ENTERSUBQUESTION."</b><br><br>"._GOBACK."<br><br></center>";
CloseTable();
include('footer.php');
exit();
}
if(!$qexplain) { $qexplain = ""._NQ_QEXPLAIN."";}
if (!$db->sql_query("INSERT INTO ".$prefix."_nquiz_questions VALUES (NULL, '$qid', '$ismcq', '$ismultiple', '$isoe', '$question', '$sol1', '$sol2', '$sol3', '$sol4', '$answer', '$points', '$qexplain', '$image', '0')")){
die (""._NQ_DBERRORTABLE."_nquiz_questions");
}
Header("Location: ".$admin_file.".php?op=nqmodifyquiz&amp;qid=$qid");
?>
Return current item: Nukequiz