jd440 Posted July 8, 2016 Share Posted July 8, 2016 Bonjour, Comment insérer une date égal à now avec la fonction Db::getInstance()->insert()?, car Db::getInstance()->insert( […] 'date' => 'NOW()', […])?, ne fonctionne pas Link to comment Share on other sites More sharing options...
coeos.pro Posted July 8, 2016 Share Posted July 8, 2016 Utilise date (php) 1 Link to comment Share on other sites More sharing options...
jd440 Posted July 8, 2016 Author Share Posted July 8, 2016 Je me demandais si il n'y avais pas une autre solution Db::getInstance()->insert( […] 'date' => ($date != '' ?: date('Y-m-d H:i:s')), […])); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now