Welcome Guest, Not a member yet? Register   Sign In
Disable identifier protection in 3.0
#1

Hello All,

I can't find a way to disable identifier protection in an update statement like this one:

$this->db->update('profile', $profile, "id = $id");

I want to do this because one the columns is a timestamp and I need that column to store the now() value. It's failing because the database receives the 'now()' value (incorrect date time value).

Thank you.

Edo.
Reply
#2

Not exactly the solution you were looking for, but NOW() is roughly equivalent to PHP's formatted date:

Code:
date('Y-m-d H:i:s')
Reply
#3

(07-17-2015, 07:51 PM)skunkbad Wrote: Not exactly the solution you were looking for, but NOW() is roughly equivalent to PHP's formatted date:


Code:
date('Y-m-d H:i:s')

Skunkbad,

You're right! Thank you.

Edo.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB