I wonder could anybody tell me whats wrong with this query, its not adding the data to my db & just returning my error msg 'please try again' thanks v much
if (strlen($_GET['update']) > 0) {
$id = FALSE;
$message .= '<p>No id!</p>';
} else {
$id = $_GET['update'];
}
if (strlen($_GET['update']) > 0) {
$si = FALSE;
$message .= '<p>Not selected!</p>';
} else {
$si = $_GET['update'];
}}
if ($id && $si) {
require_once ('mysql_connect.php');
$query = "INSERT INTO Bookings (id, seatid) VALUES (" . $id . "," . $si . ")";
$result=@mysql_query ($query);
if ($result) { // If it ran OK.
exit(); // Quit the script.
} else {
$message = '<p>Errorp><p>' . mysql_error() . '</p>'; }
mysql_close();
} else {
$message .= '<p>Please try again.</p>';