Jump to content

Select rows within a date rate?


EchoFool

Recommended Posts

Hey,

 

 

I have a table which stores userid and birthday.

 

 

The birthday is in the format of YYYY-MM-DD

 

 

And im trying to do a query to search for all userid's that are between the ages of two ages, lets say 18 and 30.

 

 

How would i do this ? Do i have to use a php function in the query?

Link to comment
https://forums.phpfreaks.com/topic/248848-select-rows-within-a-date-rate/
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.