Menu
Hi
I am trying to create a page counter in PHP.
Table structure:
[CODE]
Table Name: tbl_counter
Column Name:total_views
Column Datatype: integer
I am using the following SQL query on the page.
[CODE]
UPDATE tbl_counter SET total_views=total_views+1
I know its weird but, sometimes the counter increases twice instead of 1, any idea why?