I got a basic update script but Everytime I submit I get the error Query is empty dose any know why and how to fix this
Script:
<?
if ($submit) {
if ($id) {
$sql = "UPDATE conti SET
windate1='$windate1',
windate2='$windate2' WHERE id=$id";
}
// Send a confirmation to the browser indicating submit was successful
$result = mysql_query($sql);
print mysql_error();
echo "Notes are here";
} else { // print form
?>
Thank in advance