SamiBH Posted January 14, 2010 Share Posted January 14, 2010 Hello I want to make block in my site that shows top 5 Uploaders mysql: Table: files Field: uploader *** Table: Uploaders Field: id *** If anyone can help me I will be Very thankful Link to comment https://forums.phpfreaks.com/topic/188410-little-help/ Share on other sites More sharing options...
trq Posted January 14, 2010 Share Posted January 14, 2010 Where exactly are you stuck? Link to comment https://forums.phpfreaks.com/topic/188410-little-help/#findComment-994660 Share on other sites More sharing options...
SamiBH Posted January 14, 2010 Author Share Posted January 14, 2010 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 More sharing options...
SamiBH Posted January 14, 2010 Author Share Posted January 14, 2010 Edit* mysql: table files field uploader (uploader id not username) table users field id (same "uploader" in files) field username Link to comment https://forums.phpfreaks.com/topic/188410-little-help/#findComment-994721 Share on other sites More sharing options...
trq Posted January 14, 2010 Share Posted January 14, 2010 You need to be more explicit with your explanation I'm afraid. Link to comment https://forums.phpfreaks.com/topic/188410-little-help/#findComment-994730 Share on other sites More sharing options...
SamiBH Posted January 14, 2010 Author Share Posted January 14, 2010 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.