For offline
Create a new table in the database called user, then from b4j
B4X:
Dim Sql1 As SQL
Sql1.InitializeSQLite(File.DirApp, "mydb.db" , False)
'insert to DB
Main.Sql1.BeginTransaction
Try
/// my db > user > id,name,pass,date
Main.Sql1.ExecNonQuery2("INSERT INTO users VALUES (?,?,?,?)", Array(Null,TextField_name.Text,TextField_password.Text,DateTime.Now))
Main.Sql1.TransactionSuccessful
Catch
Log(LastException)
Main.Sql1.Rollback
End Try
Hi all: I'm starting (at last) to work with B4XPages, so I've started to adapt the B4XPages + B4XDrawer example. I think I’ve seen more examples with php + mysql, but no projects with Jrdc2. Maybe the dummy data and the UI are too basic, but you can get some ideas. What do we need? - A...
Hi all: I'm starting (at last) to work with B4XPages, so I've started to adapt the B4XPages + B4XDrawer example. I think I’ve seen more examples with php + mysql, but no projects with Jrdc2. Maybe the dummy data and the UI are too basic, but you can get some ideas. What do we need? - A...