cash"; if($gelddhh >="$inzet"){ $getal = rand(1,2); if($getal==1){ $waarde = "kop"; }else{ $waarde = "munt"; } if($waarde=="$waardenkom"){ $inzet1 = "$inzet * 1.1"; mysql_query("UPDATE `[users]` SET `cash`= cash + $inzet1 WHERE `login`='$login'"); $melding = "Het is goed."; }else{ mysql_query("UPDATE `[users]` SET `cash`= cash - $inzet WHERE `login`='$login'"); $melding = "Het is fout."; } }else{ $melding = "Je hebt niet genoeg contant geld."; } } } ?>
Kop of munt |
jou geld: $geld = mysql_fetch_array(mysql_query("SELECT * FROM `[users]` WHERE login = '{$data->login}'")); print "$ $geld[cash],-"; ?> | $melding | ";} ?>