Hi,
This might be a simple question, but I can't get it to work!
Currently my browse users page displays users stored in the database one after the other in line in the following way:
User1
User2
User3 etc
I tried moving the HTML table around that gets output with the user data returned from the database, but can't make it do the following:
User1 User2 User3
User4 User5 User6 etc
Here is the code I am using, what do I need to change?
Code:
echo "<TABLE border='0' bordercolor='red' cellspacing='0' bgcolor='red' cellpadding='4' align='center'><TR bgcolor='red'><TH><font color='white' face='arial'>Search results</font></TH><TH> </TH><TH> </TH><TH> </TH></TR>";
while($row = mysql_fetch_array($result)){
//echo $row['userid']. " ". $row['name'];
echo "<TR bgcolor='#f1f1f1'><TD><a href='view_profile.php?id=".$row['userid']."'><img src=".$row['imagelink']." width='125' length='125'></img></a></TD><TD><a href='view_profile.php?id=".$row['userid']."'>".$row['userid']."</a></TD><TD><a href='view_profile.php?id=".$row['userid']."'>".$row['name']."</a></TD><TD>" .$row['location']."<br></TD></TR><TR bgcolor='white'><TD> </TD></TR>";
echo "<br /><br />";
}
echo "</TABLE>";
?>
|