المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : error with update query



C# Programming
03-11-2013, 11:32 PM
what is wrong with this query ?
i cant find them...
i use c# and access database.

command.CommandText = (@"UPDATE Users_Table SET Password= '" + txtNewPassword.Text.ToString() + "' WHERE (Username='" + txtUsername.Text + "' AND Password='" + txtOldPassword.Text + "' )"); command.ExecuteReader();