not as function.
I'm asuming that you're injecting values as VALUES(?, ?). Great, but you can't use MySQL functions like that. You need to use date('c') as value or change the query to VALUES(?, NOW()).
got it solved.. there was no default value. I don't know what was exactly causing problem.. but it's working now..
Обсуждают сегодня