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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:30:35+00:00 2026-06-04T00:30:35+00:00

I have a facebook app that stores users birthday in mysql db as a

  • 0

I have a facebook app that stores users birthday in mysql db as a varchar. Im trying to get all the users birthday that are

coming up in 1 week,
if it’s during the current week
and if the birthday was last week.

in my php i get the birthday and convert them with strtotime()

I can easily check if the birthday is today

if (date('m-d') == date('m-d', $bday)) {
    // today is your bday!!
}

Im lost when it comes to comparing dates aahaha I know I can use strtotime(‘nextweek’) or something like that, but im not sure

  • 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-04T00:30:37+00:00Added an answer on June 4, 2026 at 12:30 am

    The query would be like :

    select * from table 
    where bday between curdate() - INTERVAL 7 DAY and curdate() + INTERVAL 7 DAY
    

    for the range within past week and next week.

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

Sidebar

Related Questions

I have an app which allows users to log in via Facebook, and all
Imagine you're writing a web app that will have 1 million users (they all
I have a facebook app using a lot of Javascript that doesn't work correctly
I have an app that uses facebook connect. When it has to login to
I have to develop web2py app and have to use Facebook sdk in that.
I have an app with a login screen with a button that invites users
I can't seem to get a facebook connect app that I am building to
I have an iphone app which post photos into albums of facebook users, and
If I have a Facebook app, and my users agree to allow my app
I am trying to get users' permission for 'offline_access' in an iFrame Facebook application

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.