Jump to content

link click counted?


Html

Recommended Posts

This may be the wrong place, but I want to be able to count a link which has been clicked. So a number would be displayed next to it.

Could be javascript, but the link I am using is in php code. I just used that as it worked for what I needed. so I have two links below in this table/code.

echo '<table><tr>';
  while ( $row = mysqli_fetch_array( $r, MYSQLI_ASSOC ))
  {
    echo '<td><strong>' . $row['item_name'] .'</strong><br><span style="font-size:smaller">'. $row['item_desc'] . '</span><br><img src='. $row['item_img'].'><br>' .'<br><a href="robotpainted.3ds">Download 3ds robot file</a><br><a href="robotpainted.blend">Download robot blend file</a></td>';
  }
  echo '</tr></table>';

Thanks.

 

 

Edited by Html
Added code example
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...