$v = $fetch['view'];
$add = 1;
$insert = $v + $add;
mysql_query("UPDATE `tutorials` SET `views` = '$insert' WHERE `id` = '$id'") or die("MySql Error 3: ".mysql_error()." in tutorial");
any help? I can't see why it wont work...
let me add some detail lol. I have the default set as 0 so $v would = 0 and $add = 1.. so it should go 0 + 1 and it works for the first view, it'll update but online 1 time? Every other time i view the tutorial, it wont update at all and it's bugging me...
Edited by bigdfbc2008, 21 June 2008 - 05:28 PM.
