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 9136237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:55:35+00:00 2026-06-17T08:55:35+00:00

Basically I have a site where users can upload and share files. I would

  • 0

Basically I have a site where users can upload and share files. I would like it so users can keep track how many downloads were made in the last 30 days and be able to view each of those 30 days individually.

I was thinking of creating a table that’ll have 31 columns, 1 column being the id and the rest being day1, day2, day3,etc… Updating this table every day moving the downloads of 1 day to the day before.

My question is would this be efficient or is there a better way of going about this?

  • 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-17T08:55:36+00:00Added an answer on June 17, 2026 at 8:55 am

    You would be better off having a download table which links to your file table. The download table would create a record each time a file is downloaded.

    id
    file_id
    ip_address
    user_agent
    created
    

    etc.

    Then write a query to determine how many downloads happened a day would be quite an easy task.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically i have a classic vhost with: ServerName www.site.com ServerAlias site.com I would like
I have a web site with two routes. Basically the user can do one
We have a site where users can enter statistics for an item. The statistics
Many users of my site have reported problems downloading a large file (80 MB).
I'd like to allow users to upload videos and then have other users view
Basically, I have a CodeIgniter site that registers users through this url: http://website.com/user/register/1 Unfortunately,
Basically I have a single page site that scrolls when the user clicks on
So I have site list on certain pages that basically just have links to
Basically I have a single page on my site that I want any php
Basically, have a portfolio site I'm working on, with upwards of 15 pieces in

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.