Say I have a table name auto_parts with these fields. id, part, price, timestamp and I insert a new row via php as so:
id, part, price, timestamp
$query = \"insert into auto_p
What you need to do is declare timestamp to be of type in your sql
timestamp
timestamp TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
and modify the query to
$query = "insert into auto_parts(id, part, price) values(1, 'axle', 200)" mysql_query($query);