";
}
$casino1 = mysql_query("SELECT * FROM `nummerspel` WHERE `land`='{$data['land']}'");
$casino = mysql_fetch_assoc($casino1);
echo "
|
";
exit;
}
if($_GET['spel'] == 'koop') {
if($casino['owner'] == '') {
if($_POST['code']) {
$code = $_POST['code'];
$maximum = $_POST['maximum'];
$aftrek = '25000';
if($data['cash'] >= $aftrek && $code == TRUE && $maximum > 0 && $maximum < 5000) {
mysql_query("UPDATE `[users]` SET `cash`=`cash`-'$aftrek',`nummerspel`+'1' WHERE `login`='{$data['login']}'");
mysql_query("UPDATE `nummerspel` SET `owner`='{$data['login']}',`maximum`='$maximum',`code`='$code' WHERE `land`='{$data['land']}' AND `spel`='1'");
echo "U heeft de casino game gekocht in $land