How to fill auto current datetime into table?

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
antonan
User
Posts: 9

How to fill auto current datetime into table?

Post by antonan »

How to fill auto current datetime into table?


mobhar
User
Posts: 11761

Post by mobhar »

Just select "ew_CurrentDateTime()" from "Auto-Update Value" column under "Fields" setup -> "General" for edit/update record.

You may also type "ew_CurrentDateTime()" (without double quotes) in "Default Value" under "Fields" setup -> "Add Page" for add record.


antonan
User
Posts: 9

Post by antonan »

the data type in database should be "Datetime" or "timestamp"?


mobhar
User
Posts: 11761

Post by mobhar »

It should be "Datetime".


Post Reply