OK I need to sort this out in my mind once and for all.
When i am displaying the date for some reson on my site i use date(M:Y); yer we all know that one.
OK now i have never got it right when i use dates with databases so i need to learn.
For example.
I have an events table in my database. tblEvents
With eventId, eventName, evenDate, eventTime
No i want to be able to insert new events right and i want the user to be able to add teh add th date but then whats the best way to add this to the db?
Once thing i dont want to display events that are i nteh past right you see, this is where i am getting confused as to how to store. But i also wat to be able to display teh date in normal format on the site.
The other thing is i have a news table and i want to capture the date and time when the news was added.
Help and advise would be great, thanks.
When i am displaying the date for some reson on my site i use date(M:Y); yer we all know that one.
OK now i have never got it right when i use dates with databases so i need to learn.
For example.
I have an events table in my database. tblEvents
With eventId, eventName, evenDate, eventTime
No i want to be able to insert new events right and i want the user to be able to add teh add th date but then whats the best way to add this to the db?
Once thing i dont want to display events that are i nteh past right you see, this is where i am getting confused as to how to store. But i also wat to be able to display teh date in normal format on the site.
The other thing is i have a news table and i want to capture the date and time when the news was added.
Help and advise would be great, thanks.