Time/Date Stamp SQL Entry via PHP. Remove when Time's up!
Posted: Thu Oct 16, 2008 9:46 am
I am looking at creating a form that when submitted, posts a date and time (though time not important) stamp to the MySQL field entry.
If the Date is within the current date (ie. Closed Date set to 11/12/08 - viewing on 12/11/08 would display it, but viewing on 12/12/08 would not show it) then it would display, otherwise it would now.
I can find many auto entry scripts for adding a date, but not idea how to get PHP to see it, and say "aahh, that date has passed, I won't show it". Or "yes, that's in the future, I'll display that".
I've seen it done in ASP.net, but haven't any idea how to code that, so cannot decipher to use here.
Any help would be appreciated.
Simon
If the Date is within the current date (ie. Closed Date set to 11/12/08 - viewing on 12/11/08 would display it, but viewing on 12/12/08 would not show it) then it would display, otherwise it would now.
I can find many auto entry scripts for adding a date, but not idea how to get PHP to see it, and say "aahh, that date has passed, I won't show it". Or "yes, that's in the future, I'll display that".
I've seen it done in ASP.net, but haven't any idea how to code that, so cannot decipher to use here.
Any help would be appreciated.
Simon