Jump to content

link click counted?


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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...