Jump to content

Little help


SamiBH

Recommended Posts

I don't know how to make it read 2 fields and print top 5

 

 

I did top 5 most reply because there was field in Uploaders with how many reply the user did

mysql:

Table: files

Field: reply

 

but there isn't field "files" with how many the user uploaded  :-\

 

mysql:

Table: files

Field: uploader

***

Table: Uploaders

Field: id

Link to comment
https://forums.phpfreaks.com/topic/188410-little-help/#findComment-994663
Share on other sites

ok sorry

 

I have a site that allow user to upload files

 

when user upload a file

 

the record in mysql is like this

 

lets say the user John Uploaded file named John_file

 

in files Table:

Field filename >>>  Jonh_file

Field uploader >>> 56 (id in numbers)

 

***

 

user name and id is in users Table

Field id >>>56

Field username >>> John

 

***

 

I want a code shows top 5 users sorted by how much files they uploded

like

 

#1  john >> 100 files

#2 sam >> 90 files

#3 ....

 

Link to comment
https://forums.phpfreaks.com/topic/188410-little-help/#findComment-994745
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.