Hello, I'm trying to read data from my SQL cells. My table from phpMyAdmin looks like this:
My code looks like this:
My Output is this:
I see it is logging the column name every time. How do I make it log the data in each row instead of the column name?
My code looks like this:
B4X:
Sub SQL_Read
Try
Dim RS As ResultSet
RS = SQL1.ExecQuery("SELECT 'bot' FROM `bot_settings`")
Do While RS.NextRow
Log(RS.GetString("bot"))
Loop
Catch
Log(LastException)
End Try
End Sub
My Output is this:
Program started.
bot
bot
bot
bot
bot
bot
I see it is logging the column name every time. How do I make it log the data in each row instead of the column name?