A price based on a Web Counter for my site - How?

Discussion in 'HTML & Website Design' started by +:::Spider25:::+, Feb 5, 2007.

  1. #1
    Hey Guys, I want to give a price or a gift to the visitor number 1000 of my site, but how can I make that possible?

    Thanks for the answers
     
    +:::Spider25:::+, Feb 5, 2007 IP
  2. MWilson

    MWilson Peon

    Messages:
    109
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hello,
    You would have to do a few things, first keep a log of all IP Addresses so when the same person refreshes the page the counter doesn't change. This can be done easily with PHP and MYSQL if you have PHP and Database access. Second you would use the same database to add 1 to it everytime the page is loaded. With PHP and MYSQL is easiest. There are other ways like writing to a text file and retrieving the data that way. Let me know if you have PHP and MYSQL, and what counter you use if any.
    Mike
     
    MWilson, Feb 5, 2007 IP
  3. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #3
    If you're thinking of those blinking popup windows that scream "You are our 1,000th visitor! CLICK HERE for your FREE PRIZE!" keep in mind that's just advertising, and that you really are not the 1,000th visitor. That ad just happened to be picked at random.
     
    Dan Schulz, Feb 6, 2007 IP