HostRefugee-Vince
03-19-2007, 05:25 AM
Hi,
I have a populated database with the date in the following format:
2007-01-28
YEAR-MONTH-DAY
I want to run a SELECT statement that only grabs rows with a date older than or equal to 90 days from today's date.
PLAIN TEXT SQL STATEMENT:
SELECT plan FROM domains WHERE status='1' AND id='$appliestoID' AND dateActivated is older than OR equal to 90 days from today's date.
Would someone be willing to translate that into valid php? The only part I am really having trouble with is the date part.
I have a populated database with the date in the following format:
2007-01-28
YEAR-MONTH-DAY
I want to run a SELECT statement that only grabs rows with a date older than or equal to 90 days from today's date.
PLAIN TEXT SQL STATEMENT:
SELECT plan FROM domains WHERE status='1' AND id='$appliestoID' AND dateActivated is older than OR equal to 90 days from today's date.
Would someone be willing to translate that into valid php? The only part I am really having trouble with is the date part.
