All pastes #443622 Raw Edit

Stuff

public text v1 · immutable
·published 2007-04-16 22:03 UTC
rendered paste body
	if (isset($_POST['quizid']))
	{
		$quizid = $_POST['quizid'];
		$res = mysql_query("SELECT * FROM `questiontable` WHERE `quizid` = '$quizid'");
		if (!mysql_num_rows($res) == 0)
		{
			while($row = mysql_fetch_array($res))
			{
				$ques[] = $row['questionid'];
				foreach ($ques as $qid)
				{
					$result = mysql_query("SELECT `answer` FROM `answertable` WHERE `answernumber` = '1' AND = `questionid` = '$qid'");
					
				}
			}
		}

	}