Location: PHPKode > projects > Decider > decider/Initial_Answer_View/select_answer.php
<?php

require("../common/database.php");


if (isset($_GET['client']) && $_GET['client'] != '') {
	//Add slashes to any quotes to avoid SQL problems.
	$client = addslashes($_GET['client']);
	//Get every page title for the site.
	$result = mysql_query("SELECT * FROM initial_answers,initial_quiz WHERE Client_Name ='".$client."' AND Initial_Quiz_Id=Id " );
	$i=0;
	while($sqa = mysql_fetch_array($result)) {
	$i++;
		//Return each page title seperated by a newline.
		echo "<tr><td><b>Q.".$i."</b> ".$sqa['Question']."</td></tr><tr><td >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b> A .</b>".$sqa['Answer']."</td></tr><tr><td>&nbsp;</td></tr>";
		
	}
}
?>
Return current item: Decider