שפת C: הבדלים בין גרסאות בדף
תוכן שנמחק תוכן שנוסף
אין תקציר עריכה |
אין תקציר עריכה |
||
שורה 1:
string sqlCommand = "";
string fileName = "database.accdb";
string tableName = "table1";
string name = Request["username"];
string gender = Request["gender"];
string password = Request["password"];
sqlCommand = "INSERT INTO " + tableName + " (username, upassword, gender) ";
sqlCommand += " VALUES ('" + name + "', '" + password + "', '" + gender + "')";
//Response.Write(sqlCommand);
//Response.End();
MyAdoHelper.DoQuery(fileName, sqlCommand);
|