Hi, I have this error and I know it is an empty string but I cannot find where is my mistake. Anyone can tell me where is my mistake. My coding // update asset $sql = "UPDATE Assets SET financetag='" . $assettype_id . $assettag . "',assettype='" . $assettype . "',assetsupplier='" . $assetsupplier . "',assetmodel='" . $assetmodel . "',assetserial='" . $assetserial . "',assetprice='" . $assetprice . "',description='" . $assetdescription . "',make='" . $assetmake . "',year='" . $assetyear . "',rego='" . $assetrego . "',notes='" . $notes . "' WHERE id=" . $key . ";"; if ($result = doSql($sql)) { An error occurred while attempting to update the database. Please contact the webmaster. This is action attempted:: INSERT INTO Assets (financetag,assettype,assetsupplier,assetmodel,assetserial,assetprice,description,make,year,rego,status,notes,added_by, date_added) VALUES ('1691751','sdsd','16','','','0','','','2006','','','', '1', '2006-07-01 15:09:11'); Duplicate entry '' for key 2 Eunice