Fixed missing ) in Notifications
This commit is contained in:
parent
58ea71ec41
commit
d1ab441fc4
@ -100,7 +100,7 @@ namespace ZKuP
|
|||||||
IntToBool iTb = new IntToBool();
|
IntToBool iTb = new IntToBool();
|
||||||
|
|
||||||
//SQL.WriteSQL($"INSERT INTO {MainWindow.table}.notification (Username, Visitor, SMS, SMSRepeat) VALUES ('{Environment.UserName}', '{cBVisitor.SelectedValue.ToString()}', '{tbSMS.Text}', '{iTb.ConvertBack(rbRepeatYes.IsChecked.Value, typeof(int), null, null)}')");
|
//SQL.WriteSQL($"INSERT INTO {MainWindow.table}.notification (Username, Visitor, SMS, SMSRepeat) VALUES ('{Environment.UserName}', '{cBVisitor.SelectedValue.ToString()}', '{tbSMS.Text}', '{iTb.ConvertBack(rbRepeatYes.IsChecked.Value, typeof(int), null, null)}')");
|
||||||
SQL.CreateAndWriteSQL($"INSERT INTO {MainWindow.table}.notification (Username, Visitor, SMS, SMSRepeat) VALUES (@UserName, @cBVisitor, @tbSMS, @iTb", new List<MySqlParameter>()
|
SQL.CreateAndWriteSQL($"INSERT INTO {MainWindow.table}.notification (Username, Visitor, SMS, SMSRepeat) VALUES (@UserName, @cBVisitor, @tbSMS, @iTb)", new List<MySqlParameter>()
|
||||||
{
|
{
|
||||||
new MySqlParameter("@UserName", Environment.UserName),
|
new MySqlParameter("@UserName", Environment.UserName),
|
||||||
new MySqlParameter("@cBVisitor", cBVisitor.SelectedValue.ToString()),
|
new MySqlParameter("@cBVisitor", cBVisitor.SelectedValue.ToString()),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user