该用户从未签到
|
| | 3 |. E; _$ p! c/ w# w$ z8 V8 o
往ACCESS 添加数据) _$ d- P3 l; `% x5 H- I
a; v& K- E9 o2 ]+ s8 _string aaa="insert into zhuce(a_name,a_pwd,a_apwd,a_e-mail,a_tel) values('"+TextBox1.Text+",'"+TextBox2.Text+"','"+TextBox3.Text+"','"+TextBox4.Text+"','"+TextBox5.Text+"')";
/ {5 u) J3 O. S4 _# q% x1 {+ ]( EOleDbConnection myconnection = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+Server.MapPath("db1.mdb")); # s5 W9 H% K' {- }3 v5 M
OleDbCommand mycommand = new OleDbCommand(aaa,myconnection);
7 ~ w6 `' j9 _3 U6 l {" gmycommand.Connection.Open(); 6 N3 Z7 ? C5 J" Q) m; K
mycommand.ExecuteNonQuery();
, X4 O( R" Z) I+ E( [ Xmycommand.Connection.Close(); # d g, [- [: f2 d4 |2 e
Response.Write("<script language=Javascript>alert('注册成功')</script>");
0 D4 l; O2 l* z& T, J6 X# ^. u( [# M: n$ l0 K
# o* X! o/ ^; j/ P; q: H
老是说INSERT INTO 语句的语法错误 : J1 t3 O' h3 K& q: ~
检查了N变都没发现哪里错(C#的)
; k5 g7 q0 N+ W/ ]& Y: w |
|
|
|