Hi
Being new to programming, I wonder if someone can help to advice how I can create 2 columns for displaying users.
I am thinking of splitting it to 2 or 4 columns so that it will reduce the height of display in a single column.
Hope someone can give some help on this. Thanks!
Here is my current code:
Code:
<?php
$query1="SELECT `username` FROM `record` where `active` ='1' order by `userid` DESC LIMIT 100";
$result1=mysql_query($query1);
$num=mysql_numrows($result1);
echo "<b><center>Last 100 Members</center></b><br>";
if ($num>101) {
$to=1;
}else{
$to=$num;
}
$i=0;
while ($i < $to) {
$loginname=mysql_result($result1,$i,"username");
echo "<a href='$siteurl/$loginname.html'>$loginname</a><br>";
$i++;
}
?>