diff --git a/TeamDBAwesome/TeamDBAwesome/SqlService/MySqlService.cs b/TeamDBAwesome/TeamDBAwesome/SqlService/MySqlService.cs index 956ecf6..31e9f68 100644 --- a/TeamDBAwesome/TeamDBAwesome/SqlService/MySqlService.cs +++ b/TeamDBAwesome/TeamDBAwesome/SqlService/MySqlService.cs @@ -284,7 +284,7 @@ namespace TeamDBAwesome.SqlService //now do the insert string insert = "Insert into invoice (invoiceid, customerid, invoicedate, billingaddress, billingcity, billingstate, billingcountry, billingpostalcode, total, payid) " + "VALUES " + - "(" + nextInvoice + "," + custId + "," + NowTime + "," + Address + "," + City + "," + State + "," + Country + "," + PostalCode + "," + total + "," + payId + ")"; + "(" + nextInvoice + "," + custId + ",\"" + NowTime + "\",\"" + Address + "\",\"" + City + "\",\"" + State + "\",\"" + Country + "\",\"" + PostalCode + "\"," + total + "," + payId + ")"; cmd = new MySqlCommand(insert, SqlConn); cmd.ExecuteNonQuery();