A fatal MySQL error occured.\n
Query: " . $qry . "
\nError: (" . mysql_errno() . ") " . mysql_error()); $customerset = mysql_fetch_array($result); $onecustomer = $customerset["customerid"]; // Okay, update the selected customer $qry = "UPDATE ".$opts['in']." SET invoiceid=$invnr, invoicelinedate=NOW() WHERE invoiceid IS NULL AND customerid=$onecustomer AND invoicelineid IN (".implode(",",$combine).")"; $result = mysql_query($qry) or die("A fatal MySQL error occured.\n
Query: " . $qry . "
\nError: (" . mysql_errno() . ") " . mysql_error()); header('Location: invoicelist.php'); } else { header('Location: itemstoinvoice.php'); } ?>