how do i insert the textboxes with different data inside of them in one database table
i have this code dunno what to do next
Private Sub btnadd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnadd.Click
Dim sql As String
Dim totcount As Integer = 0
Dim inc As Integer = 0
Dim counttome As Integer = 4
sql = "INSERT INTO table ('name') VALUES ('" & TextBox1.Text & "')"
sql = "INSERT INTO table ('name') VALUES ('" & TextBox2.Text & "')"
sql = "INSERT INTO table ('name') VALUES ('" & TextBox3.Text & "')"
sql = "INSERT INTO table ('name') VALUES ('" & TextBox4.Text & "')"
Dim a As Integer = 0
' while loop execution '
While a < 5
SqlQuery(sql)
a = a + 1
End While
End Sub
any ideas?