treehouse : what would you like to learn today?
Web Design Web Development iOS Development

how to make external link hit counter with php & mysql?

  • Hi all

    how to make external link hit counter with php & mysql?

  • What research have you done elsewhere?

    I find it unlikely that a quick google search wouldn't give you some clue.

  • I found by using Get request, i want it done by one click on the link like

    <a target="_blank" href="#"><img src="img/1.jpg" /></a>

    if you have link do that please provide me

    Thank you

  • That's not an "external link." Perhaps you need to explain your goal a little more clearly.

    Furthermore, are you asking how to do this (as implied in your post title), or are you asking for someone to do it for you?

  • It sounds like you want to implement some sort of click tracker for external links. You'll need to do this using Javascript. Add a on click event to the external link then log the activity via ajax.

  • You can take a look at the Zilla Likes plugin. It pretty much does what your asking but you would have to manipulate the code to only do what you want.

  • I've migrated away from Wordpress to Kirby. I'm trying to find a similar plugin to ZillaLikes. Anyone know of one?

  • Have you fully migrated away from WordPress now @chrisburton? Things gone okay?

  • @Watson90 I have. Kirby is much more lightweight and flexible. It's only been out for a year but it has progressed rapidly and the support is incredible. Plus, it's nice not having to deal with a database (although you can use one - it's optional).