Jump to content

How can i get my code to do this


shorty3

Recommended Posts

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

73116200.jpg

 

 

Link to comment
https://forums.phpfreaks.com/topic/212078-how-can-i-get-my-code-to-do-this/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.