i am trying to make a nice list from a mysql query but at the moment i can only display one list while i'd like to display three different results next to each other.
this is the code i already have:
<?php
$sql = "SELECT * FROM tbl_users WHERE `school`='".$w_user->user_school."' AND `group`='".$w_user->user_group."' AND `function`='student'";
$result = mysql_query( $sql );
echo("<table border=\"1\">");
while( $row = mysql_fetch_array( $result ) )
{
?>
<tr>
<td><input type="checkbox" name="check[<?php echo( $num ); ?>]" value="<?php echo( $row["ID"] ); ?>"></td><td><?php echo( $row["name"]." ".$row["a_naam"]." ".$row["last_name"] ); ?></td>
</tr>
<?php
$num++;
}
echo("</table>");
?>
can someone help me with this
greets japie

New Topic/Question
Reply




MultiQuote





|