Hello. I have a counter that isn't incrementing. Thanks for having a quick look:
- Select the highest value from counter table, by subseason.
- If there is a value, increment it by one and assign it to $incremented_count.
$count_select1 = "
SELECT *
FROM ol_counter
WHERE olc_subseason_pk = '$subseason_pk'
ORDER BY olc_val DESC
LIMIT 1
";
$count_result1 = mysql_query($count_select1)
or die ("couldn't execute onloc increment query 1");
$count_row1 = mysql_fetch_array($count_result1);
$numrows1 = mysql_num_rows($count_result1);
$count = $count_row1["olc_val"];
if ($numrows1 > 0)
{
$incremented_count = ($count++);
}
else
{
}
thanks
knelson