Location: PHPKode > projects > E2Exam: LAMP for the Education > 2.php
<?
require("db.php");

$sql = "select * from Examinee order by EID";
$res = mysql_query($sql);


?>
<meta http-equiv="Content-Language" content="en-us">
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" id="AutoNumber1">
  <tr>
    <td align="center" valign="top">ExamCodes</td>
  </tr>
  <tr>
    <td align="center" valign="top">
<?
$x=0;
while($r=mysql_fetch_array($res)){
	$x++;
	echo "&nbsp;~&nbsp;".$r['EID'];
	if($x==15){
		echo "<br>";
		$x=0;
	}
}
?>&nbsp;</td>
  </tr>
</table>
Return current item: E2Exam: LAMP for the Education