spewn
Programmer
- May 7, 2001
- 1,034
hello.
i have a field in my database called cDateEnd. in there, i store a date, such as 6/20/2009.
i want to return results on all entries where the cDateEnd is after todays date.
this is what i'm trying to accomplish:
if i have to pass a value for todays date, it will be formatted as 1/21/2009.
any ideas would be helpful.
thanks.
- g
i have a field in my database called cDateEnd. in there, i store a date, such as 6/20/2009.
i want to return results on all entries where the cDateEnd is after todays date.
this is what i'm trying to accomplish:
Code:
$sth = $dbh->prepare("select cID from mytable where cDateEnd IS LATER THAN TODAYS DATE");
if i have to pass a value for todays date, it will be formatted as 1/21/2009.
any ideas would be helpful.
thanks.
- g