I am uppdating a mysql database from a webpage, with this piece of code:
if ( isset( $reglerna2 ) )
{
$query = \"UPDATE biljett0 SET antal = antal - $number\";
$result = mysql_query( $query );
if ( ! $result )
die (\"Error\");
}
But how do I print an error message if the value from $reglerna2 (input from webpage) ecceeds the databas value (antal) ??