Tengo esta consulta que me guarda dos datos en una taba (columna1 el ID y columna2 guarda la fecha)
Código PHP:
Protected Sub btnGuardar_Click(ByVal sender As Object, ByVal e As System.EventArgs)
If (Not (grid1.SelectedRecords) Is Nothing) Then
For Each oRecord As Hashtable In grid1.SelectedRecords
Dim i As Integer = 0
Dim sDate As String = ""
For i = 0 To Calendar1.SelectedDates.Count - 1
sDate = Calendar1.SelectedDates(i).Date
Dim myComm As SqlCommand = New SqlCommand("INSERT INTO Join_CobrosRemisera " & _
"(ID_Remisera, Date) VALUES " & _
"(@sID, @sDate)", myConn)
myConn.Open()
myComm.Parameters.Add("@sID", SqlDbType.Int).Value = oRecord("ID")
myComm.Parameters.Add("@sDate", SqlDbType.SmallDateTime).Value = sDate
myComm.ExecuteNonQuery()
myConn.Close()
Next i
Next
End If
End Sub
Podran apreciar que mucho de esto no entiendo, busque en Google y me confundo mas! Solo estoy tratando de simplificarle la vida a mi viejo haciendole un programita
Gracias!!!