Forum Moderators: coopster
code for inc_counter.php is as follows:
<?
// Input: $_GET['cid'], $_GET['amt'], $_GET['img']
@include("config.php");
@include("connect.php");
$_c = (int)@$_GET['cid'];
$_n = (int)@$_COOKIE[$cookie_name.$_c];
@mysql_query("UPDATE flip_pages SET counter=counter+".(double)@$_GET['amt']." WHERE c_id={$_c} AND page={$_n}");
if (@$_GET['img'])
{
@header("Content-Type: image/gif");
@readfile("1x1.gif");
}
?>
Thanks for the help.
Jon
Try removing all those error suppression symbols. ie: @
Also, change your query line to:
mysql_query("UPDATE flip_pages SET counter=counter+".(double)@$_GET['amt']." WHERE c_id={$_c} AND page={$_n}") or die(mysql_error());
And finally at the top of your page, set your error reporting to E_ALL:
error_reporting(E_ALL);
See if that combo throws out any errors.
d