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



Reply With Quote

Bookmarks