I want to create refer system into my site. It will look like this:

www.mysite.xz.lt/index.php?refer=269593. Other thing to do is registering those incomings. I want to count how many new users everyone calls to my site...

If I haven't informed you perfectly and you have questions - ask.

Thanks for your time.