0

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++;
  
      }
2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by jkon
0

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.