i read kevin's book (1st edition)... and i liked the idea that by adding a column in my MySQL table i can know how many ppl read the articles on the site. so i copied the code below:
PHP Code:
$viewed = @mysql_query("UPDATE news SET viewed=viewed+1 WHERE id=$id;"); 
this just the job very well, but has one problem. i also have a 'posted' column which timestamps the time the article was written... but every time a user views the article...the posted column is updated. what can i do...so it doesnt get updated?