sorry for this post but couldn't edit either of my last ones fro some reason...
anyway i have done the following instead...
$views = $row['views'];
if(!session_is_registered($title))
{
$views++;
mysql_query("UPDATE videos SET views = $views' WHERE code = '$video'");
session_register($title);
}
echo $views;it seems to work except the first time i view the page it will update right but moment i go back or refresh it will return to the original value and stay that way. So a bit closer but also stranger

edit: fixed... notive the ' after $views? well yeh i just did lol -.-
Edited by sharpcode, 01 February 2013 - 08:57 AM.