Welcome Guest, Not a member yet? Register   Sign In
How to insert NOW() in DATETIME field
#2

(This post was last modified: 09-29-2020, 06:53 AM by nc03061981.)

now() return int, datetime field is string
So
Code:
$now = date('Y-m-d H:i:s', now());

Learning CI4 from my works, from errors and how to fix bugs in the community

Love CI & Thanks CI Teams

Reply


Messages In This Thread
How to insert NOW() in DATETIME field - by keop - 09-29-2020, 12:17 AM
RE: How to insert NOW() in DATETIME field - by nc03061981 - 09-29-2020, 06:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB