Location: PHPKode > projects > Decider > decider/Fuzzy_Select_Quizes/fuzzy_selectionquiztab.php
<?php

	require('../Login/authen.php');

?>
<html>
<head>
<title>Decider - Information Gathering Assistant</title>
<link rel="stylesheet" type="text/css" href="../ajaxtabs/ajaxtabs.css" />
<link rel="stylesheet" type="text/css" href="../common/styles1.css" />
<script type="text/javascript" src="../ajaxtabs/ajaxtabs.js">

</script>

</head>
<body>
<div id='maindiv' align="center">
<table width="800px"><tr><td align="left" valign="top"><?php require('../common/top.html'); ?></td>
	</tr></table>

<table background="../common/tableback.png" width="800px" height="800px">
<tr align="right"><td></td><td class="label" align="right">
	<?php 
	
echo $_SESSION['username'];
?></td></tr>
	<tr>
	
		<td align="left" valign="top"><?php require('../common/menu.html'); ?></td>
		<td width="600px" align="left" valign="top"><?php require('../Fuzzy_Select_Quizes/fuzzy_selectionquiz.php'); ?></td>
	</tr>
</table>
<?php

//to add data to client table
if(isset($_POST['select'])){

for($i=0;$i<1000;$i++){
	if(isset($_POST[$i])){

		$q_string="INSERT INTO selected_quiz (Organization, Person_Id, Q_Id, Turn) VALUES ('$_POST[client]','$_POST[k_id]','$i','$_POST[turn]')";
		if (!mysql_query($q_string,$link)){
	  		die('Error: ' . mysql_error());
	  	}
	}
}
	echo "record added";
	mysql_close($link);
	
}
?>

</div>
</body>
</html>
Return current item: Decider