I have a table with a column called ‘updated’. When a new row is CREATED, the column automatically inserts the current time. However, I’d like to UPDATE the column as well..any input on how to do this? Here’s my update statement (doesn’t have the ‘updated’ column yet):
$update = mysql_query("UPDATE documents SET company = '$company',claimnumber = '$claimnumber',fullname = '$fullname',dateofloss = '$dateofloss',foruser = '$foruser' "."WHERE doc_id =".$doc_id);
If you want the
updatedcolumn to be updated on update, assignNOW()to it in your query.