Greetings guys i'm stuck in this problem for 2 days now can you guy tell me the problem?
here's the code
If errorMsgLbl.Text = "Password match" Then
sqlCmd = New SqlCommand("INSERT INTO registered_cust_tbl([customer_fname], [customer_lname], [customer_DoB], [customer_Contact], [customer_Email], " & _
" [customer_Address], [customer_Gender], [customer_Ailments], [customer_Username], [customer_Password], " & _
" [customer_Secret_Question], [customer_Secret_Answer], [customer_Purpose], [customer_weightRcnt], [customer_heightRcnt], [customer_bmi], [customer_weightLossGain], [customer_weightUpdt]) " & _
" VALUES ('" & firstNameTb.Text.Trim & "', '" & lastNameTb.Text.Trim & "', '" & DoBdtp.Text & "', '" & customerMPNo.Text & "', '" & _
emailTb.Text.Trim & "', '" & addressRtb.Text.Trim & "', '" & gender & "', '" & ailmentstxtBx.Text.Trim & "', '" & _
usernameTF.Text.Trim & "', '" & passwordTF.Text & "', '" & SecQuesBox.Text & "', '" & SecAnsBox.Text.Trim & "', '" & _
purpose & "', '" & numWeight.Text & " " & TypeOfWeight.Text & "', '" & numHeight.Text & " " & TypeOfHeight.Text & "', '" & TotalBmi.Text & "', '" & "0" & "' , '" & "0" & "' )", getConnect())
errorMsgLbl.Text = "Password match"
msgLbl.Text = "Password match"
msgLbl.ForeColor = Color.DarkGreen
errorMsgLbl.ForeColor = Color.DarkGreen
'sqlCmd.ExecuteNonQuery()
MsgBox("You have successfully registered.")
getConnect.Close()
Else
End If
I don't know the problem here.