1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

track link clicks and alter link order with php/mysql?

Discussion in 'PHP & Perl' started by blackhatdamo, Nov 14, 2013.

  1. blackhatdamo

    blackhatdamo Registered Member

    Joined:
    Apr 6, 2012
    Messages:
    86
    Likes Received:
    27
    Location:
    A dark place
    Hi does anyone know where I can find out how to do this?

    I want to create a site that alters a link structure based on how many clicks each link gets, for example:

    User clicks on link number 4 more than link number 1, in this scenario the code would have to record the amount of clicks and then rearrange the links in order of clicks.

    Or if it would be easier display the most popular link somewhere else like in another element such as a box that displays 'link of the month' or something.

    I want to be able to only track certain links and elements by using a class id.

    I have looked high and low and the only thing I can find is

    Code:
     www.phpdevtips.com/2011/07/simple-advanced-click-tracking-using-php-and-mysql/ 
    but I don't know how or where to edit it for my needs.

    Thanks
     
    Last edited by a moderator: Nov 14, 2013
  2. innozemec

    innozemec Jr. VIP Jr. VIP

    Joined:
    Aug 19, 2011
    Messages:
    5,289
    Likes Received:
    1,799
    Location:
    www.Indexification.com
    Home Page:
    Do you have some knowledge of php/javascript/mysql databases?

    If not, you won't be able to do it alone and your best try would be to hire someone to do it for you. You can open a thread in the Hire a Freelancer section here
     
  3. blackhatdamo

    blackhatdamo Registered Member

    Joined:
    Apr 6, 2012
    Messages:
    86
    Likes Received:
    27
    Location:
    A dark place
    Yes I have basic knowledge of php and mysql. I can implement javascript also but not code from scratch. Maybe I will have to hire somebody when I have some money, thanks though.
     
  4. Lyscer

    Lyscer Junior Member

    Joined:
    Jun 29, 2012
    Messages:
    109
    Likes Received:
    46
    Occupation:
    Software Engineer
    If you still need help with this, PM me and I will help you get things sorted out.