onestopplay
01-08-2010, 10:01 PM
I have 2 date columns in a database:
start_date | end_date
When someone submits "form a", I want it to add the current date&time to "start_date" and then I want it to put the current date&time + 3 days into the "end_date" column.
Then I will have a mysql_query like this:
mysql_query("SELECT * FROM table WHERE id='$id'");
with a while loop of course.
But, I also want it to only show results in between the start and end dates.
How can I do this??
THANKS!!
start_date | end_date
When someone submits "form a", I want it to add the current date&time to "start_date" and then I want it to put the current date&time + 3 days into the "end_date" column.
Then I will have a mysql_query like this:
mysql_query("SELECT * FROM table WHERE id='$id'");
with a while loop of course.
But, I also want it to only show results in between the start and end dates.
How can I do this??
THANKS!!