I have added a query in my website php page. It looks like something…
mysql_select_db("my_db", $con);
$sq2="INSERT INTO querylog(QueryID, Module, AskedBy, Date)
VALUES
('', '$_POST[Module]', '$_POST[Name]', '')";
$row = !mysql_query($sq2,$con)
I want ‘Date’ column to update automatically in phpmyadmin table. Not sure how to proceed.
You can either set the default for the column to be
NOW()or just insertNOW()with your query.Please, don’t use
mysql_functions in new code. They are no longer maintained and are officially deprecated.