I've managed to get PHP to work well with SQL, but date and time-related parts of my site are proving difficult to understand.
I've created 3 records with these dates:
December 26th (2009) - 2:25pm
January 5th, 2010 - 3:00pm
January 7th, 2010 - 9:00pm
I'm trying to get it to show them in my script but am not sure how to set it correctly in PHPMyadmin or in PHP. It always shows the current date and time in my script, which is not what I want.
Basically, what I want to do is display the date and time as above, with the current year not being shown, only the next year's being shown, like this:
December 26th - 2:25pm
January 5th, 2010 - 3:00pm
January 7th, 2010 - 9:00pm
Also, I would like the record to be updated so that it changes it to this on the day itself (current date):
2:25pm
then removes the record after a period of time has elapsed (I don't want to do this manually, nor do I have access to cron jobs).
I'm not sure how to do this, and would welcome any advice.