".
"There must be no empty fields - not updating:
".
"([$quantity], [$description], [$color], [$shop], [$price])".
"
";
}
else
{
// Add or update the gifts table
$query = "REPLACE INTO gifts ".
"(gift_id, description,shop,quantity,color,price,username) values (".
"'$gift_id', '$description', '$shop', $quantity,
'$color', '$price', NULL)";
// Run the query through the connection
if (@ mysqli_query($connection, $query)==FALSE)
showerror($connection);
}
}
// Show the user the gifts for editing
//
// Parameters:
// (1) An open $connection to the DBMS
function showgiftsforedit($connection)
{
// Create an HTML form pointing back to this script
echo "\n