shorty3 Posted August 30, 2010 Share Posted August 30, 2010 heres my code : <? $query=mysql_query("SELECT * FROM friends WHERE username='$viewuser' AND type='Friend' AND active='1' LIMIT 9"); $num=mysql_num_rows($query); if ($rows == "0"){ echo "<center>No friends</center>"; } $friend = 0; while($right=mysql_fetch_object($query)){ echo "<table height=55 width=55><tr><td align=center><a href='profile.php?viewuser=$right->person'>$right->person</a><br><img src=king_drifterz.jpg width=50 height=50>"; echo "</td></tr></table> "; $friend++; echo ($friend % 3 == 0)? "<br>" : ""; } ?> But i want it to do this just like fb Link to comment https://forums.phpfreaks.com/topic/212078-how-can-i-get-my-code-to-do-this/ Share on other sites More sharing options...
wildteen88 Posted August 30, 2010 Share Posted August 30, 2010 Multi-column Results Link to comment https://forums.phpfreaks.com/topic/212078-how-can-i-get-my-code-to-do-this/#findComment-1105237 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.