Ok, I came across this site :http://www.pokebuddies.tk/ and the images(pokemon) show how many times they have been clicked(their level) and You can only click it once every 24 hours per IP.

How did they do that? I know they use PHP and MySQL.

Recommended Answers

All 4 Replies

if its once every 24 hours it is probably done using cookies with a 24 hour timeout.
or you can use sessions to do it 15min after they leave.
its a little heavy on the database to use mysql
i would recommend only using mysql to store the total views

if its once every 24 hours it is probably done using cookies with a 24 hour timeout.
or you can use sessions to do it 15min after they leave.
its a little heavy on the database to use mysql
i would recommend only using mysql to store the total views

Alright, but how do I get the PHP to edit the image for the count?

How i make a counter that will show me the total visitor in my site in different time.
Anyone can help me please

Ok I ran some tests on that site and they do actually use MYsql to store views.
there is a short tutorial on it here

@jibon57 What do you mean by different time?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.