My code currently stands like this
$ticketone = rand(1,25);
$tickettwo = rand(1,25);
$ticketthree = rand(1,25);
$ticketfour = rand(1,25);
function lotterytickets($ticketone,$tickettwo,$ticketthree,$ticketfour){
$array = array("$ticketone","$tickettwo","$ticketthree","$ticketfour");
sort($array,SORT_NUMERIC);
$o = $array[0];
$t = $array[1];
$th = $array[2];
$f = $array[3];
$last = $o.$t.$th.$f;
return $last;
}
mysql_query("INSERT INTO `lotto` (`id`,`username`,`one`,`two`,`three`,`four`) VALUES ('','$username','$o','$t','$th','$f')");
Only where it insters into Lotto the numbers are all shown as 0. Meaning something isnt functioning right.
Wheres the problem?