php - Current time when MySQL record is saved to database -


i'm working zend framework 1.12 , mysql. want add column in database, save currenct datetime when record inserted table.

anyone knows how can defined column? function must working on mysql site, not php.

you must change column type timestamp , , in default field set current_timestamp


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

android - Keyboard hides my half of edit-text and button below it even in scroll view -