PhoenixDown
Programmer
I havent done php in a while so could someone tell me why this isn't working
include 'config.php';
$dbi = mysql_connect ("$server", "$user", "$pass" or die ("Error connecting."
mysql_select_db ("$db" or die ("Error selecting database."
$result = mysql_query("update news set views='".($views+1)."' where id='".$id."')", $dbi);
i printed it to the browser and the query looked okay, i just dont know whats wrong.
include 'config.php';
$dbi = mysql_connect ("$server", "$user", "$pass" or die ("Error connecting."
mysql_select_db ("$db" or die ("Error selecting database."
$result = mysql_query("update news set views='".($views+1)."' where id='".$id."')", $dbi);
i printed it to the browser and the query looked okay, i just dont know whats wrong.