![]() |
|
|
|||||||
![]() |
|
|
Thread Tools | Rate Thread |
|
|
PM User | #1 |
|
New Coder ![]() Join Date: Jun 2007
Location: Bremerton, WA
Posts: 52
Thanks: 8
Thanked 0 Times in 0 Posts
![]() |
Date Function And Checkboxes
Is there a way to use the php date function to submit the date into a database, and then be able to pull it out however I want? The main thing I want to achieve is to be able to pull the date from the db and have the option to display the date in multiple ways.
Would the explode function work? Another thing.. I'm displaying a list of categories from my db. Each category is tied to an html checkbox. How can I submit multiple categories to the db at once? |
|
|
|
|
|
PM User | #2 |
|
Regular Coder ![]() Join Date: Apr 2007
Location: Philadelphia, PA, USA
Posts: 746
Thanks: 2
Thanked 100 Times in 97 Posts
![]() |
Store it as DATETIME... always, ALWAYS.
Display it using DATE_FORMAT() http://dev.mysql.com/doc/refman/5.1/...on_date-format
__________________
ZCE |
|
|
|
|
|
PM User | #3 | |
|
New Coder ![]() Join Date: Jun 2007
Location: Bremerton, WA
Posts: 52
Thanks: 8
Thanked 0 Times in 0 Posts
![]() |
Quote:
I know all about the date format, but that would submit the date in one set format. I'm wanting to submit it and be able to pull it out in al kinds of formats. |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Rate This Thread | |
|
|