Problem with script counter.php

Hi Pullo,
I am new to the site and very new to coding PHP but i did read one of your posts on increasing the counter when pressing a button it looked a bit complicated, because i wanted my image counter to increases so as i test i changed hibards.eu counter.php with images by replacing hasVisted with refresh:-

 $_SESSION['refresh'] = "yes";

which works so what i was thinking is if i just and a button linked to this line of code would that work. PS i did try your code and it worked great, cool stuff i liked it. just could not add my image files 0.png to 9.png and was confused about the ajax link

1 Like