bondigor69 Posted June 19, 2012 Share Posted June 19, 2012 Hello guys. Im not that good in php, just learning and I try to make a simple script. I want to count how many times an image has been clicked on each URL and echo the count beside the image. I have the same Image on each url(share image) Please help It has been 2 days that Im looking around and writing scripts. :'( Quote Link to comment https://forums.phpfreaks.com/topic/264409-count-image-hits/ Share on other sites More sharing options...
scootstah Posted June 19, 2012 Share Posted June 19, 2012 You're either going to have to use an AJAX script which triggers when the URL is clicked, or you're going to have to point the URL at a PHP script with the destination as part of the query string. Your best bet for storing the results in either case is to use a relational database, like MySQL. Quote Link to comment https://forums.phpfreaks.com/topic/264409-count-image-hits/#findComment-1355020 Share on other sites More sharing options...
bondigor69 Posted June 19, 2012 Author Share Posted June 19, 2012 I want to store the results in MYSQL or even easier in a flat file database and after get the count there BUT how can I do that Quote Link to comment https://forums.phpfreaks.com/topic/264409-count-image-hits/#findComment-1355023 Share on other sites More sharing options...
scootstah Posted June 19, 2012 Share Posted June 19, 2012 BUT how can I do that I just told you how. Do you have any code so far? Are you stuck on something? Quote Link to comment https://forums.phpfreaks.com/topic/264409-count-image-hits/#findComment-1355027 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.