Android Question how can I update my onlinDB with b4a?

Hello Dears

I have an app that get USERs info.
I want users can edit their infos but I cant write codes for this ability.
thank you if help me up that to write codes for update my DB with app
 

Attachments

  • php update.txt
    1.8 KB · Views: 278
  • update madule.txt
    7.7 KB · Views: 263

Andrew (Digitwell)

Well-Known Member
Licensed User
Longtime User
Upvote 0

aeric

Expert
Licensed User
Longtime User
You need to learn how to use OKHttpUtils2 to communicate with the server.
Check [B4X] OkHttpUtils2 with Wait For

Example:
B4X:
Sub UpdateUserInfo(id As String, user_id As String) ' Add more variables
    Dim j As HttpJob
    j.Initialize("", Me)
    j.Download2("http://mydomain.com/myphpapp/update_user_info.php", _
    Array As String("id", id, "user_id", user_id)) ' Add more variables
    Wait For (j) JobDone(j As HttpJob)
    If j.Success Then
        Log(j.GetString)
    End If
    j.Release
End Sub
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…