prijs > $data->bank){
echo"je hebt te weinig op je bank!";
die();
}
mysql_query("UPDATE `[users]` SET bank = bank-$koop->prijs WHERE login = '" . $data->login . "'") or die("banken : " . mysql_error());
mysql_query("UPDATE `[users]` SET bank = bank+$koop->prijs WHERE login = '" . $koop->plaatser . "'") or die("banken1 : " . mysql_error());
mysql_query("INSERT INTO `[logs]`(`time`,`IP`,`forwardedFor`,`login`,`person`,`code`,`area`) values(NOW(),'{$_SERVER['REMOTE_ADDR']}','$forwardedFor','veiling','{$koop->echt}',$koop->prijs,'donate')");
mysql_query("INSERT INTO `[messages]`(`time`,`IP`,`forwardedFor`,`from`,`to`,`subject`,`message`) values(NOW(),'{$_SERVER['REMOTE_ADDR']}','$forwardedFor','veiling','{$koop->echt}','Belangrijk','$koop->naam is gekocht door $data->login')");
mysql_query("DELETE FROM `veiling` WHERE `id`='$id'");
echo "
Je hebt $koop->naam Gekocht!
";
echo "";
die();
}
?>
echo "
";
echo "
Koop
Product
Prijs
Aangeboden door
";
/// Einde uitvoer van query
$query = "SELECT * FROM `veiling` ORDER BY 'id' DESC";
$info = mysql_query($query) or die(mysql_error());
$count = 0;
echo "