Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2001
    Location
    New Jersey
    Posts
    1,508

    Help in selecting a winner for site

    I need some ideas on how I can select a winner.

    I am running a contest and will be receiving many many entries. How should I go about selecting a winner?

    I would like it to be as random as possible as to avoid any doubt from the entrants.

    Any ideas?

    Should I have a script just pull out a random name?

    Thanks
    -= PREMIUM DOMAIN NAMES @ DOMAINPEP.COM

  2. #2
    A script would be nice for you. Easier to maintain, it lets you focus on something else rather than maintaining the list.

    I'm planning to create a script like this and sell it with a discount. In the mean time, you could go to www dot PrizeDrawGenerator dot com (If I'm not mistaken) to get the script. I guess, you have to pay for that. Don't really remember the price though.

    Hope that helps.

    Regards,

  3. #3
    Join Date
    Aug 2006
    Location
    Regina, Saskatchewan, CA
    Posts
    221
    How are the entries kept~? Are they stored in a database~? If you are, depending on the type of database and the choice of code you use for it, you could select data randomly.

    For example, if you're using PHP and MySQL to keep track of the entries, you could do something like this:

    <?php
    // random row mysql query example
    $sql = "SELECT * FROM tablename
    WHERE somefield='something'
    ORDER BY RAND() LIMIT 5";

    // or, something like this
    $sql = "SELECT * FROM tablename
    ORDER BY RAND()";
    ?>

    Bill
    Bill - Support Analyst - Liveblock Auctions International
    http://www.LiveGlobalBid.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •