将Visual Studio Express 2013用于Web和WAMP服务器用于我的数据库
我正在创建注册页面,但我遇到了此错误
算术运算导致溢出
它指向我的代码的这一部分
cmd = New MySqlCommand("START TRANSACTION;INSERT INTO person(firstname, lastname, gender, birthday, address, mobile, telephone, email) VALUES ( '" & fn & "', '" & ln & "', '" & gn & "', concat('" + mm + "'," / ",'" + dd + "'," / ",'" + yy + "'), '" & ad & "', '" & mo & "', '" & tl & "', '" & em & "');INSERT account(username, password, access) VALUES( '" & un & "', '" & pw & "', 'user'); COMMIT;")
这是我的班级文件
Public Function registerDB(ByVal fn As String, ByVal ln As String, ByVal un As String, ByVal pw As String, ByVal mm As Integer, ByVal dd As Integer, ByVal yy As Integer, ByVal gn As String, ByVal ad As String, ByVal mo As Integer, ByVal tl As Integer, ByVal em As String)
Dim res As String
'Try
cmd = New MySqlCommand("START TRANSACTION;INSERT INTO person(firstname, lastname, gender, birthday, address, mobile, telephone, email) VALUES ( '" & fn & "', '" & ln & "', '" & gn & "', concat('" + mm + "'," / ",'" + dd + "'," / ",'" + yy + "'), '" & ad & "', '" & mo & "', '" & tl & "', '" & em & "');INSERT account(username, password, access) VALUES( '" & un & "', '" & pw & "', 'user'); COMMIT;")
这是我在网络表单中的代码
Protected Sub btnRRegister_Click(sender As Object, e As EventArgs) Handles btnRRegister.Click
Dim rgC As registerClass = New registerClass
Dim ret As String
rgC.connectDB()
ret = rgC.registerDB(tbxFirstname.Text.ToString, tbxLastname.Text.ToString, tbxRUsername.Text.ToString, tbxRPassword.Text.ToString, tbxRMonth.Text.ToString, tbxRDay.Text.ToString, tbxRYear.Text.ToString, rbtRGender.Text.ToString, tbxRAddress.Text.ToString, tbxRMobile.Text.ToString, tbxRTelephone.Text.ToString, tbxREmail.Text.ToString)
我有点被困在这里,有什么建议吗?