|
Author |
Message |
nareshphp
Junior WebHelper
Joined: 19 Jul 2007
Posts: 1
|
Posted:
Thu Jul 19, 2007 11:16 am (17 years, 5 months ago) |
|
I've inserted a record into mysql db using now() function value.
just like...
insert into TABLE_NAME(date,name,age)values(now(),'Naresh','24')
when tried to echo the date filed value on the local system,it gives me 2007-06-06 13:14:16.
But on the live system it gives me as 20070606131416.
It's weird and i can't understand what the problem.
And need to get the same format exactly as on the local system.
I need that format for my database queries.
can any one help me out here?
Thanks in advance. |
|
|
|
|
ddemetrius456
Junior WebHelper
Joined: 22 Oct 2009
Posts: 6
|
Posted:
Wed Oct 28, 2009 3:31 am (15 years, 1 month ago) |
|
TABLE_NAME(date,name,age)values(date(),'Naresh','24').
This will solve your problem. |
|
|
|
|
Vitopa
Junior WebHelper
Joined: 26 Feb 2015
Posts: 12
Location: Ellicott City, Md.
|
Posted:
Fri Jul 10, 2015 3:19 pm (9 years, 5 months ago) |
|
Hi All,
I am facing a issue in changing the date format of a column in my database. Below is my code
PHP Code: |
|
|
|
|
|
|
You cannot post new topics in this forum. You cannot reply to topics in this forum. You cannot edit your posts in this forum. You cannot delete your posts in this forum. You cannot vote in polls in this forum.
|
Page generation time: 0.120593 seconds :: 17 queries executed :: All Times are GMT
Powered by phpBB 2.0
© 2001, 2002 phpBB Group :: Based on an FI Theme
| |