Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8561967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:37:29+00:00 2026-06-11T16:37:29+00:00

Basically I have a website where user vote on projects posted by users or

  • 0

Basically I have a website where user vote on projects posted by users or “Support” everytime a user clicks the support button, it goes into a table and stores 3 things, a normal auto increment identifier, the user_id that ‘supported’ it and the project id they supported. Now everyday we want to display ‘Top projects’ on the homepage. This will my guess be done with a php script and a cron job. I can’t really think of how to query the database properly to determine X amount of top projects. (Most likely 5 or 10) Iv’e thought about this for a while, but I can’t think of an answer. Any ideas/answers help alot! Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T16:37:30+00:00Added an answer on June 11, 2026 at 4:37 pm

    Well, your going to have to add a time stamp of one sort or another to that database. So you can query by the day from midnight to 11:59p. I’d say datetime format ie: YYYY-MM-DD HH:MM:SS (its in 24 hour format)

    From that if handled correctly you could do something like

    <?php
    $todayMidnight = date('Y-m-d'). ' 00:00:00';
    $todayLastMin = date('Y-m-d'). ' 23:59:59';
    $result = mysql_query("select * from the_table where the_Time BETWEEN $todayMidnight AND $todayLastMin LIMIT 10 order by the_count");
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, I have a CodeIgniter site that registers users through this url: http://website.com/user/register/1 Unfortunately,
Basically what i have is a vb.net form that when a user clicks the
I have a web site with two routes. Basically the user can do one
So basically I have website that has names of cities that can be checked
Basically my question is i have a website which was developed around 3 years
Basically I have a masterpage defining the basic layout of the website. What I
I have a website hosted with godaddy. Basically for my work I use TFS.
I'm building this website and I have basically two questions about this page: http://sites.publishyours.com.br/silviamecozzi/pt/obra/deserto_das_palmas.php
Basically, we have an ASP website right now that I'm converting to PHP. We're
Basically I have an asp.net website with login and search pages. Currently, I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.