CODE
$winner = rand(1,$sold);
$DB->query("SELECT mid FROM `ibf_moose_lotto` WHERE tid={$winner} ");
// mid respresents member id, tid represents ticket id.
Think about it: If I wanted five kajillion minerals, I'd give myself five kajillion minerals.
[right][snapback]478714[/snapback][/right]