Jump to content

Ok, a silly question


npsari

Recommended Posts

I have this little query

 

$q = "SELECT * FROM friends ORDER BY Date DESC, Time DESC LIMIT 40;";
$res = @mysql_query($q,$con); 
while($r = @mysql_fetch_array($res)){ ////BIG WHILEEEEEEE
print "<A href='/profile.php?friendID={$r['FriendID']}'>View profile</A>";
}

 

I want every 4 results, a line to show

print"<hr noshade size=\"2\" width=\"100%\" color=\"#000000\" >";

 

How can i do this  :)

 

Link to comment
https://forums.phpfreaks.com/topic/105389-ok-a-silly-question/
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.