PHP
if (!$uMysql = mysqli_query($mysqli, 'UDPATE `users` SET `money` = `money` - ' . $costs . ',
`house_level` = house_level + 1 WHERE
`id` = "' . intval( $_COOKIE[ 'uid' ] ) . '" AND
`hash` = "' . addslashes( $_COOKIE[ 'hash' ] ) . '" AND
`ipadres` = "' . $_SERVER[ 'REMOTE_ADDR' ] . '"' ))
{
$error = ' Errormessage: ' . mysqli_error($mysqli);
}
en de error:
CitaatErrormessage: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UDPATE `users` SET `money` = `money` - 13000 AND ' at line 1
zoals je kan zien is $costs gevuld alleen het blifjt gewoon niet goed werken wie ziet de fout?