|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
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
|
![]() |
| Viewing: Dev Articles Community Forums > Databases > MySQL Development > Can't use Date Type? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|