Competition Random Selector

uid;
}

$count = count($user_arr)-1;
$rand = mt_rand(1, $count);
$user_req = $user_arr[$rand];
$result = db_query(“SELECT name FROM users WHERE uid = ‘$user_req'”);
$user = db_fetch_object($result);
print “Winner!: ” . $user->name;
?>

Leave a Reply

RELATED BY