UPDATE timestamp

admin

Administrator
Staff member
I made a forum and in order to make the latest post go to the top of the board I need the timestamp of the record to be updated everytime someone replies to it.

CURRENT CODE:
***************
$sql = "UPDATE g_forum SET replyto = 0 WHERE ID = $repto";
$result = mysql_query( $sql );
***************
This should just update the topic. The problem is that the timestamp field ("date" in the case of my code, remains the same) I thought that it updated automatically everytime the record was updated
 
Back
Top