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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T10:16:07+00:00 2026-05-15T10:16:07+00:00

my users upload photo and all uploads recorded in mysql with the date info.

  • 0

my users upload photo and all uploads recorded in mysql with the date info. i want to limit uploads by the months. user may just upload 3 pics in a month. what is the best way to do this ?

cheers

  • 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-05-15T10:16:07+00:00Added an answer on May 15, 2026 at 10:16 am

    Use:

      SELECT YEAR(t.ur_date_field) AS yr,
             MONTH(t.ur_date_field) AS month_number,
             COUNT(*) AS num_photos
        FROM UR_TABLE t
    GROUP BY YEAR(t.ur_date_field), MONTH(t.ur_date_field)
    ORDER BY yr, month_number
    

    …to get:

    yr    |  month_number  |  num_photos
    --------------------------------
    2010  |  1             |  2
    2010  |  2             |  1
    

    If there aren’t any photos for a given month, it won’t show up in the resulset.

    From there, you can validate the month in particular.

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

Sidebar

Related Questions

I need to upload the photo of a user with his details from asp.net
I want to let users upload Images. The file gets re-named (by adding the
I'm using CodeIgniter + Zend libraries. I want to let users upload videos to
I'm building an application where users can upload pictures. All I require is for
I am currently using paperclip to upload a single photo. When the user goes
I'm working on an photo upload app and need to allow users to upload
I want to allow users of an iPhone app to upload photos and use
I want to allow users of an iPhone app to upload photos and use
BACKGROUND: The app allows users to upload a photo of themselves and then place
I am stuck in weird situation. I want to upload photo from my iPad

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.