I have the results of a query, and I want them to appear in a newspaper column style report. Any advise?
/* Code Starts Here
$sql= "SELECT realname, userlogin , depotid FROM usertable WHERE depotid < 100";
$result=mysql_query($sql, $link);
$rowno=mysql_num_rows($result);
PRINT <<<END
<table border = 0 cellpadding = 0 cellspacing = 0 width="33%">
<tr>
<th width="7%"><font size=1>Depot</font></th>
<th width="19%"><font size=1>Name</font></th>
<th width="7%"><font size=1>Tech</font></th>
</tr>
</table>
END;
while($line=mysql_fetch_array($result, MYSQL_ASSOC))
{
PRINT <<<END
<table border = 0 cellpadding = 0 cellspacing = 0 width="33%">
<tr>
<th width="7%"><u><font size=1>$line[depotid]</font></th>
<th width="19%"><u><font size=1>$line[realname]</font></th>
<th width="7%"><u><font size=1>$line[userlogin]</font></th>
</tr>
</table>
END;
}
print "__________________________________";
print "<br>$rowno";
*/ Code ends here
Thanks,
Sharon
/* Code Starts Here
$sql= "SELECT realname, userlogin , depotid FROM usertable WHERE depotid < 100";
$result=mysql_query($sql, $link);
$rowno=mysql_num_rows($result);
PRINT <<<END
<table border = 0 cellpadding = 0 cellspacing = 0 width="33%">
<tr>
<th width="7%"><font size=1>Depot</font></th>
<th width="19%"><font size=1>Name</font></th>
<th width="7%"><font size=1>Tech</font></th>
</tr>
</table>
END;
while($line=mysql_fetch_array($result, MYSQL_ASSOC))
{
PRINT <<<END
<table border = 0 cellpadding = 0 cellspacing = 0 width="33%">
<tr>
<th width="7%"><u><font size=1>$line[depotid]</font></th>
<th width="19%"><u><font size=1>$line[realname]</font></th>
<th width="7%"><u><font size=1>$line[userlogin]</font></th>
</tr>
</table>
END;
}
print "__________________________________";
print "<br>$rowno";
*/ Code ends here
Thanks,
Sharon