This link shows example of viewcount, when i click button code it generates numbers and then insert into table while displaying it on textbox. But i noticed that when i refreshed the page the count goes back to 001 instead of continuing from where it stopped.
Example if i click the button it will generate number like 001, when i click the second time it generates 002 etc, but when i refresh the page and click again it goes back to 001.
I was thinking you could have made it in a way that before the numbers are generated it will check if the number already in table before generating new ones.