From 500f48e8d8066cb2b794d07c283bfe410effa2f9 Mon Sep 17 00:00:00 2001 From: Jeremy Mill Date: Mon, 7 Dec 2015 15:22:23 -0500 Subject: [PATCH] generate invoice is up --- TeamDBAwesome/TeamDBAwesome/SqlService/MySqlService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();