<?
include("conn.php") ;
$sql = "SELECT r_pt_id , d_picker , R.hod_code , H.hod_name , R.dept_id , D.dept_name , number_pt , hy , hn , ay , an ,r_pt_status FROM round_pt R JOIN department D ON R.dept_id=D.dept_id JOIN hod H ON R.hod_code=H.hod_code WHERE r_pt_status = 'A' ORDER BY d_picker";
$sqlquery = mysql_db_query($dbname, $sql);
while($row = mysql_fetch_row($sqlquery) or die(mysql_error()))
{
print ("<td width=15% height=28><div align="left"><font face="MS Sans Serif" size="1">$row[3]</div></font></td>");
print ("<td width=10% height=28><div align="center"><font face="MS Sans Serif" size="1">$row[1]</div></font></td>");
print ("<td width=15% height=28><div align="left"><font face="MS Sans Serif" size="1">$row[5]</div></font></td>");
print ("<td width=10% height=28><div align="center"><font face="MS Sans Serif" size="1">$row[6]</div></font></td>");
print ("<td width=10% height=28><div align="center"><font face="MS Sans Serif" size="1">$row[7]</div></font></td>");
print ("<td width=10% height=28><div align="center"><font face="MS Sans Serif" size="1">$row[8]</div></font></td>");
print ("<td width=10% height=28><div align="center"><font face="MS Sans Serif" size="1">$row[9]</div></font></td>");
print ("<td width=10% height=28><div align="center"><font face="MS Sans Serif" size="1">$row[10]</div></font></td>");
print ("</tr>");
print ("<tr><td colspan=8 width=80% height=5 background=img/line.gif></td></tr>");