Results 1 to 2 of 2

Thread: Need help with sql query...

  1. #1
    Join Date
    Mar 2008
    Posts
    9

    Default Need help with sql query...

    Im trying to put the top x amount of video uploaders on the main page but not sure of the sql query to use to pull the results from the database. Only used to dealing with one table at a time and there is no record of number of videos in the signup table. Anybody know or have any suggestions to try out?

  2. #2
    Join Date
    May 2007
    Location
    Planet Earth
    Posts
    1,389

    Default Re: Need help with sql query...

    Are you talking about your top 10 users who upload the most? LIke Joe Blow has uploaded 100 videos, Betty Boop has uploaded 90 videos...etc?

    If so, my guess would be to look to the code in the submenu that says how many videos a person has (public and/or private). Or the user.tpl page where it says how many videos that person has uploaded

    Code:
    I have uploaded {$u_info.total_video} videos. {if $pack.video_limit gt "0"} out of {$pack.video_limit} videos{/if}
    which gets that info from the "subscriber" section in the sql thingie and then total_video table.


    sql thingie...don't you just love it when I speak technical?
    If it's not fun, stop doing it!

Similar Threads

  1. Unable to execute query
    By BOW in forum General Discussions
    Replies: 1
    Last Post: 05-01-2008, 04:58 AM
  2. Question about MySQL query
    By tnuriel in forum General Discussions
    Replies: 1
    Last Post: 04-19-2008, 05:37 AM
  3. Pre Purchase Query
    By institutevr in forum Sales Questions
    Replies: 1
    Last Post: 02-20-2008, 11:32 AM
  4. Pre Sales Query (Very Urgent)
    By m_33_bangkok in forum Sales Questions
    Replies: 3
    Last Post: 01-12-2008, 06:17 PM
  5. PreSales Query (Very Urgent)
    By m_33_bangkok in forum Sales Questions
    Replies: 1
    Last Post: 11-15-2007, 02:48 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •