I want to put this in a table so I can repeat this twice in two cell.

$intNumber = 1;
$sql=correctanswer($_SESSION['username1'], $_SESSION['smodule']);

	echo "<strong>the ones are ticked is right answer </strong></td><br />\n";
 
      while($info = mysql_fetch_array( $sql)) {
  
      echo " <strong>$intNumber, {$info['Que_Question']} </strong><br />\n";
      
       
  
      
  
      for($i = 1; $i <= 4; $i++) {
  
     echo "<input type=\"checkbox\" name=\"choice{$i}[]\"";
		
  
      
      echo    ( $info['Ans_Answer'.$i]) ? " checked" : "";

       
  
      
      
  
     
	  echo ($info['Que_Answer'.$i]) ? " style=\"border: 1px solid #0f0;\" " : "";
       
  
     echo " /> {$info['Que_Choice'.$i]} <br />\n";

     }
	  
  
      $intNumber++;
  
      }

Where is the correctanswer function? What are your specs and how do you think to work?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.