Dodge SRT Viper Forums : ViperAlley banner

FINAL RULES AND CONTEST CODE: Valentine 1 giveaway

1782 Views 18 Replies 14 Participants Last post by  -RUNNR
An anonymous, but generous, donor has provided Viperalley with a Valentine One (with optional concealed display) for a Grand Opening Giveaway. The donor would like to thank everyone for their hard work and participation on the new board.

To be eligible to win, all you have to do is make a single post during the month of February. Everyone who makes at least one post will automatically be entered.

At the end of the month a SQL will be written to randomly pick a user from those who posted. The query, number of eligible members and the results will be published in the Announcements forum. In the unlikely event the Administrator is chosen, the query will be run again.

The only person ineligible for this prize will be the site Administrator (the person performing the query); all others shall be given an equal chance of winning (including MOODerators).

Post Whoring will not increase your odds of winning. All you need is a single post to be eligible.

CONTEST CODE

You can see the code running here:

http://www.viperalley.com/contest.php

The following code will be used to pick the winner of next months contest; comments are welcome:

<pre><font class="small">code:</font><hr><?
require ("dbconfig.php");

$query = "SELECT B_PosterId,B_Username FROM w3t_Posts WHERE MONTH(FROM_UNIXTIME(B_Posted))=1";
$sth = $dbh -> do_query($query);

$totalusers = $dbh -> total_rows($sth);

print "<body><font size=\"1\" face=\"MS Sans Serif, Geneva\">";
print "There were " . number_format($totalusers) . " total posts made during January<br>";
$entries=array();

for( $x=0; $x < $totalusers; $x++ ) {
list ($PosterId,$Username) = $dbh -> fetch_array($sth);
// Excluded members are packetjunkie, Administrator and SmokinV10
if ( $PosterId != 2 && $PosterId != 3 && $PosterId != 5) $entries[$PosterId] = $Username;
}

print "The number of members eligable for this drawing is: " . count($entries) . "<br><br>";

print "<font size=\"5\"><b>And the winner is: " . $entries[array_rand( $entries )] . "!</b></font>";
print "</font></body>";
?></pre><hr>
See less See more
1 - 19 of 19 Posts
Hey! I clicked it 10 times and CAP came up once and that weasel AE CAP1 came up twice.

RIGGED!!!
Hope I'm not picking the winner - first shot -

There were 13,999 total posts made during January
The number of members eligable for this drawing is: 143

And the winner is: 02redws6ta!
Re: FINAL RULES AND CONTEST CODE: Valentine 1 give

This test is using Jan's data; only people who post in Feb will be eligible.
SeriousEric said:
Hey! I clicked it 10 times and CAP came up once and that weasel AE CAP1 came up twice.

RIGGED!!! <hr /></blockquote>

I thought MP had nuked my AE.
a valentine 1 is what I am presently saving up for, a free one would be great too. great idea! /images/graemlins/lurk.gifI'll stick around.
See less See more
Re: FINAL RULES AND CONTEST CODE: Valentine 1 give

J.P. said:
a valentine 1 is what I am presently saving up for, a free one would be great too. great idea! /images/graemlins/lurk.gifI'll stick around. <hr /></blockquote>

J.P.

[image]http://www.viperalley.com/pano/panels/26-4046.png[/image]
See less See more
Re: FINAL RULES AND CONTEST CODE: Valentine 1 give

thanks /images/graemlins/smile.gif
See less See more
Re: FINAL RULES AND CONTEST CODE: Valentine 1 give

DODGEguy3
Re: FINAL RULES AND CONTEST CODE: Valentine 1 give

Is anyone accepting bribes?? Just curiuos. :smooch: (You have my e-mail address)
Re: FINAL RULES AND CONTEST CODE: Valentine 1 give

I am. Don't expect success tough. PM me for details ;)



























ok... This is a joke just in case you where wondering!!!
See less See more
Ldy Nightstalker said:
What is a Valentine 1?? <hr /></blockquote>
Sheesh Ldy N...
http://www.valentine1.com/
What happens if an AE is drawn?
Re: FINAL RULES AND CONTEST CODE: Valentine 1 give

Redraw.
2
Ldy Nightstalker said:
Oh, ok! Thanks for the link CitySnake... I am still kinda new at this... /images/graemlins/smile.gif <hr /></blockquote>
All in good fun (if not always in good taste) /images/graemlins/laughing.gif :thumb:
See less See more
what language is that program? just curious...
PHP pulling data from the mySQL database.
1 - 19 of 19 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top