spewn
Programmer
- May 7, 2001
- 1,034
i have a query i'm running, for people who are between 18 - 24 years old.
here's what i have:
where TODAYSDATE is a mysql function, and uDOB is my field that stores a the date of birth as YYYY/MM/DD.
any ideas?
- g
here's what i have:
Code:
$sth = $dbh->prepare("select * from dbtable where (((TODAYSDATE - uDOB) > 18)&&((TODAYSDATE - uDOB) < 25))");
where TODAYSDATE is a mysql function, and uDOB is my field that stores a the date of birth as YYYY/MM/DD.
any ideas?
- g