PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old January 4th, 2003, 10:28 AM
hhd hhd is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 2 hhd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy I have lost my brains.... PHP/MySQL DATE help

Ok... I can format dates out of MySQL tables, and I can insert into date fields using curdate....

But... (and forgive me, this seems too newby-ish, but I have obviously burned up that brain cell on re-entry after New Year's Eve ).....

what is the syntax for saving a HTML form field as a properly formatted "date" into a table....

i.e. if user enters 12/31/02, I cannot remember what the Update/Insert syntax for that to appear as 2002-12-31 my table (field formatted as date)..... date()? I tried that and keep getting errors.....

Help renew another brain cell please

Reply With Quote
  #2  
Old January 4th, 2003, 10:43 AM
hhd hhd is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 2 hhd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
brain cell receiving

ok... i remember... I am using the date( format, strtotime($var)) function... but it brings up a good discussion....


What is the best/most elegant want to manipulate between HTML form field formats and MySQL? I feel like I am brute forcing it....

Tx,

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > I have lost my brains.... PHP/MySQL DATE help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway