i have this script:
if(mysql_num_rows($result)<1){
echo "
</table><CENTER>No Entry's detected</CENTER>";
include('inc/footer.inc.php');
}
else
{
while($row = mysql_fetch_array($result))
{
?>
<TR bgColor=#ffdddd>
<TD><? print $row[date]; ?></TD>
<TD><a href="/pu/datadump/files/<? print $row[file]."\">".$row[file]; ?></a></TD>
<TD><? print $row[type] ?></TD>
<TD><? print $row[size] ?></TD>
<TD><? print $row[user] ?></TD>
<TD><? print $row[comment]?></TD>
</TR>
<?
}
}
mysql_free_result($result);
my question:
for each user in the database i want to print one table, instead of one row. how do i manage this? reprhased: i want to print:
<TR bgColor=#ffdddd>
<TD><? print $row[date]; ?></TD>
<TD><a href="/pu/datadump/files/<? print $row[file]."\">".$row[file]; ?></a></TD>
<TD><? print $row[type] ?></TD>
<TD><? print $row[size] ?></TD>
<TD><? print $row[user] ?></TD>
<TD><? print $row[comment]?></TD>
</TR>
for each value of $row["user"]