MySQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMySQL 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:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old October 14th, 2004, 06:16 PM
fvs fvs is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 2 fvs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Can't use Date Type?

How do I insert present date into column Date Type? I used Date Type but it only returns 0000-00-00, Iv'e tried to use default NOW(), but it still only returns
0000-00-00, I also dropped date column and inserted Date Type not null and I can't seem to get it.

Reply With Quote
  #2  
Old October 26th, 2004, 09:01 PM
athlon_man athlon_man is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 9 athlon_man User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
There's a global that will allow you to get the date. It's a little more code, but you will be able to display the date no problem: The function is has different arguments based on what you want to input. http://ca.php.net/manual/en/function.date.php That'll give you an idea of what you can do. You could write something like echo date('g:i') and display the hours and minutes

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > Can't use Date Type?


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 6 hosted by Hostway