sexydawg
08-18-2002, 11:32 PM
I have a counter on my site that is supposed to increment everytime anybody looks at a certain details page (to show which properties are most popular) but for some reason, the code I am using below adds 2 to the counter instead of 1... what am I missing? Thanks...
// Update proptimesviewed in Database
$viewquery = "UPDATE propfeatured SET proptimesviewed = proptimesviewed + 1 WHERE propid = $propid";
$viewqueryresult = mysql_query($viewquery);
// Update proptimesviewed in Database
$viewquery = "UPDATE propfeatured SET proptimesviewed = proptimesviewed + 1 WHERE propid = $propid";
$viewqueryresult = mysql_query($viewquery);