If the timestamp column in the database is of type INTEGER, you can do
mysql_query("INSERT INTO permissions (date) VALUES ('".time()."')");
As an integer value, you can also perform a sort operation and convert it using the date() function from PHP back to a readable date / time format. If the timestamp column in the database is of type DATETIME, you can do
mysql_query("INSERT INTO permissions (date) VALUES ('".date('Ymd H:i:s')."')");
or
mysql_query("INSERT INTO permissions (date) VALUES (NOW())");
source share