Jump to content

Workout out Birthdays


onlyican

Recommended Posts

First, on the note of Birthdays
Happy Birthday google, 8 years, they grow up soo fast

Anyway

I store users DOB's in the MySQL table, in Mysql Format (2006-09-27)

WHats the best way to work out whos birthday it is today

I was thinking either
$today = date("m-d");
$query1 = "SELECT * FROM members WHERE dob LIKE '%".$today."' ";
OR
$today = date("m-d");
$query1 = "SELECT * FROM members WHERE dob BETWEEN '1000-".$today."' AND '30-".$today."'";

What do u think
Or any better ideas

Also,

Is there a database I can get Celebs birthdays from
So I can
This persons birthday is also today...
Link to comment
https://forums.phpfreaks.com/topic/22270-workout-out-birthdays/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.