Forum Moderators: coopster
UPDATE ListInns SET counter=$NewCount WHERE BnBKey=$row_ListInns['BnBKey'];
Is there anything wrong with that? My page will not load when I use it. I just can't remember how I did it before.
I've also tried:
mysql_query("UPDATE ListInns SET counter=($OldCount + 1) WHERE BnBKey=$row_ListInns['BnBKey']");
I used:
// Update Hit count
$OldCount = $row_ListInns['counter'];
$BnBKey = $row_ListInns['BnBKey'];
$NewCount = $OldCount + 1;
if (!session_is_registered("counted")){
mysql_query("UPDATE BnBData SET counter=$NewCount WHERE BnBKey='$BnBKey'") or die(mysql_error());
session_register("counted");
}