02-14-2008, 09:33 AM
|
#14 (permalink)
|
|
The Frequenter
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
|
PHP Code:
$postQuery = mysql_query('SELECT * FROM post WHERE id = "'.$_GET['id'].'"'); $postFetch = mysql_fetch_array($postQuery);
$newViews = $postFetch['viewcount'] + 1;
mysql_query('UPDATE post SET viewcount = "'.$newViews.'" WHERE id = "'.$_GET['id'].'"');
Finito.
__________________
"Life is a bitch, take that bitch on a ride"
|
|
|