well this is the code im using
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR...nsitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
<body bgcolor="#330099">
<form id="formstart" name="formstart" method="GET" action="start2.php">
<?php
//Include the connection details
include ("connection.php");
//Create SQL query
$query="select question,a,b,c,d from dummy";
//Execute the query
$qr=mysqli_query($db,$query);
if($qr==false){
echo ("Query cannot be executed!<br>");
echo ("SQL Error : ".mysqli_error($db));
}
//Check the record effected, if no records, display a message
if(mysqli_num_rows($qr)==0){
echo ("No record fetched...<br>");
}//end no record
else{//there is/are record(s)
while ($rekod=mysqli_fetch_array($qr)){//redo to next records
echo $rekod['question'];
echo '<input name="ans" type="radio" value="A" />' . $rekod['a'];
echo '<input name="ans" type="radio" value="A" />' . $rekod['b'];
echo '<input name="ans" type="radio" value="A" />' . $rekod['c'];
echo '<input name="ans" type="radio" value="A" />' . $rekod['d'] . '<br>';
echo '<hr>';
}
}
?>
<input type="submit" name="submit" id="submit" value="SUBMIT"/>
<?php
?>
</form>
</body>
</html>