Good day, i am trying to follow the jDRC tutorial.
i have successful connection
In my config.properties
in my
B4A
i have a button
and a sub
the log shos i inserted succesfully
but upon checking database, no data apears
also
can you give an example how to insert to database with multiple parameters or multiple columns
Thanks in advance
i have successful connection
In my config.properties
B4X:
sql.create_table
sql.select=select * from article
sql.insert=INSERT INTO article VALUES(?, ?)
in my
B4A
i have a button
B4X:
Dim Days() As String
Days = Array As String("Sunday", "Monday")
InsertRecord(Days)
and a sub
B4X:
Sub InsertRecord (Name As String)
Dim cmd As DBCommand = CreateCommand("insert",Array(Name, Null))
Dim j As HttpJob = CreateRequest.ExecuteCommand((cmd), Null)
Wait For(j) JobDone(j As HttpJob)
If j.Success Then
Log("Inserted successfully!")
End If
j.Release
End Sub
the log shos i inserted succesfully
but upon checking database, no data apears
also
can you give an example how to insert to database with multiple parameters or multiple columns
Thanks in advance