Jump to content

Pulling out top friends


textbox

Recommended Posts

Hello.

I wish to pull out a row of the top 3 friends.

 

The top friends bit i think i can sort, however, which is the best way to retrieve the image and username and link the username into the picture?

 

	$getimages = mysql_query("SELECT `username`, `thumblocation` FROM `images` WHERE 
							`timeposted` ORDER BY `timeposted` ASC LIMIT 3");
while 
($image=mysql_fetch_array
	($getimages)
)
{
echo "<a href='/__site/$username'><img src=\"$image[thumblocation]\"></a>";echo $spacer;

}

 

I have this, but it doesnt appear to help me much!

Thanks in advance

Link to comment
https://forums.phpfreaks.com/topic/51936-pulling-out-top-friends/
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.