Ahora no procesa el mysql_fetch_assoc() y me regresa:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/test/public_html/details.php on line 28
Lo cambie a $result2 y puse asi:
Código PHP:
$update="UPDATE products SET views='views'+1 WHERE id='$id'";
$result2 = mysql_query($update);
if (!$result2) {
die(mysql_error() . ' en ' . $update);
}
Pero no me regresa error alguno
La tabla MySQL en ke almacena el dato es un int(5)