how to referral ID coding?

Discussion in 'PHP' started by gagalpacaran, Oct 25, 2011.

  1. #1
    Hi, please help me how to implement referral ID in a website....for example, the site name is "mydomain.com"....and when the visitors would like to be my member, they must fill up the form...after that, they'll have an unique ID like "mydomain.com/myname" or "mydomain.com/myusername"....depend on their username....
    so, if anybody wanna register under "mydomain.com/myusername", we'll know that he/she is a downline

    nb: show me the code (php) please

    best regards
    :D
     
    gagalpacaran, Oct 25, 2011 IP
  2. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #2
    You could always use PHP's uniqid() function. The code is that simple
    
    $my_unique_id = uniqid();
    
    PHP:
     
    Rukbat, Oct 25, 2011 IP
  3. gagalpacaran

    gagalpacaran Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    sorry, Rukbat, that code wasn't clear to me,,,
     
    gagalpacaran, Oct 26, 2011 IP