title: Html link calling a Php function in the background
body: <p>I would like to have a simple system that stores the number of times a link was visited. Basically, on click I would like to call a function that adds 1 to a number of clicks stored in the database (using php).Everything should be happening in the background. Apart from that it should work as a normal link.  </p>
  
  <pre><code>&lt;a href="example.com" onclick="CALL PHP FUNCTION;"&gt;Link to example.com&lt;/a&gt;
  </code></pre>
  
  <p>How can I call a php function? I think this can be achieved using Jquery. Any advice appreciated.</p>