Hi,
Is there any working App example that uses PHP/MySQL/API, (php or python) but not using B4J server.
Using live website. Where user can login, forgot passwort, activate, etc.
I found https://www.b4x.com/android/forum/threads/php-mysql-api-user-login-app.117826/ but there are many versions.
I would like to do some tests on live hosting.
Thank you.
Thank you for you reply, i have access on servers and vps. I am looking only for a workable example.
Would like to build a small test with user login forgot password and retrive it.
I prefer for now to use build the android App and the PHP/MySQL/API.
I dont want to use as i said the B4J server solution. Want to test it live.
The example project is definitely working 100%! Check the attached zips in post #2.
If it is not working then it may due to deprecated functions in new version of PHP set in hosting.
I am using this in production for years.
The example project is definitely working 100%! Check the attached zips in post #2.
If it is not working then it may due to deprecated functions in new version of PHP set in hosting.
I am using this in production for years.
In the past, I have put my server live for free testing.
More than 1000 users have tested using my server. (I received emails for new registration)
The attachments were downloaded > 2300 times.
Not many members have thanked me or liked my post.
In the past, I have put my server live for free testing.
More than 1000 users have tested using my server. (I received emails for new registration)
The attachments were downloaded > 2300 times.
Not many members have thanked me or liked my post.
If Map1.Get("Connected") = 1 Then
AppHome - 228: Comparison of Object to other types will fail if exact types do not match.
Better to put the object on the right side of the comparison. (warning #35)
AppHome - 246: Comparison of Object to other types will fail if exact types do not match.
Better to put the object on the right side of the comparison. (warning #35)
AppHome - 131: Comparison of Object to other types will fail if exact types do not match.
Better to put the object on the right side of the comparison. (warning #35)
AppHome - 149: Comparison of Object to other types will fail if exact types do not match.
Better to put the object on the right side of the comparison. (warning #35)
AppUser - 180: Comparison of Object to other types will fail if exact types do not match.
Better to put the object on the right side of the comparison. (warning #35)
AppUser - 200: Comparison of Object to other types will fail if exact types do not match.
Better to put the object on the right side of the comparison. (warning #35)
AppUser - 239: Comparison of Object to other types will fail if exact types do not match.
Better to put the object on the right side of the comparison. (warning #35)
AppUser - 327: Comparison of Object to other types will fail if exact types do not match.
Better to put the object on the right side of the comparison. (warning #35)
AppUser - 390: Comparison of Object to other types will fail if exact types do not match.
Better to put the object on the right side of the comparison. (warning #35)
AppPassword - 118: Comparison of Object to other types will fail if exact types do not match.
Better to put the object on the right side of the comparison. (warning #35)
AppPassword - 138: Comparison of Object to other types will fail if exact types do not match.
Better to put the object on the right side of the comparison. (warning #35)
AppPassword - 209: Comparison of Object to other types will fail if exact types do not match.
Better to put the object on the right side of the comparison. (warning #35)
AppPassword - 227: Comparison of Object to other types will fail if exact types do not match.
Better to put the object on the right side of the comparison. (warning #35)
All the errors is about Map1
is all about Map1 that repeats :
eg
B4X:
If Map1.Get("Connected") = 1 Then
or If Map1.Get("result") = -1 Then
If Map1.Get("Connected") = 1 Then
AppHome - 228: Comparison of Object to other types will fail if exact types do not match.
Better to put the object on the right side of the comparison. (warning #35)
AppHome - 246: Comparison of Object to other types will fail if exact types do not match.
Better to put the object on the right side of the comparison. (warning #35)
AppHome - 131: Comparison of Object to other types will fail if exact types do not match.
Better to put the object on the right side of the comparison. (warning #35)
AppHome - 149: Comparison of Object to other types will fail if exact types do not match.
Better to put the object on the right side of the comparison. (warning #35)
AppUser - 180: Comparison of Object to other types will fail if exact types do not match.
Better to put the object on the right side of the comparison. (warning #35)
AppUser - 200: Comparison of Object to other types will fail if exact types do not match.
Better to put the object on the right side of the comparison. (warning #35)
AppUser - 239: Comparison of Object to other types will fail if exact types do not match.
Better to put the object on the right side of the comparison. (warning #35)
AppUser - 327: Comparison of Object to other types will fail if exact types do not match.
Better to put the object on the right side of the comparison. (warning #35)
AppUser - 390: Comparison of Object to other types will fail if exact types do not match.
Better to put the object on the right side of the comparison. (warning #35)
AppPassword - 118: Comparison of Object to other types will fail if exact types do not match.
Better to put the object on the right side of the comparison. (warning #35)
AppPassword - 138: Comparison of Object to other types will fail if exact types do not match.
Better to put the object on the right side of the comparison. (warning #35)
AppPassword - 209: Comparison of Object to other types will fail if exact types do not match.
Better to put the object on the right side of the comparison. (warning #35)
AppPassword - 227: Comparison of Object to other types will fail if exact types do not match.
Better to put the object on the right side of the comparison. (warning #35)
All the errors is about Map1
is all about Map1 that repeats :
eg
B4X:
If Map1.Get("Connected") = 1 Then
or If Map1.Get("result") = -1 Then
All fine. Another question: wich php version must i use to make it work? Try now also deprecated to make it work..
Because i get i message in my app
Is that a problem because of the php version ?
All fine. Another question: wich php version must i use to make it work? Try now also deprecated to make it work..
Because i get i message in my app View attachment 166777
Is that a problem because of the php version ?
If it is a Get request, you can check the output response in browser.
Better way is to check the API using Postman.
I suspect it is lacked of JSON content type or json_encode.
It can also happen if there is an error executing MySQL query.
If it is a Get request, you can check the output response in browser.
Better way is to check the API using Postman.
I suspect it is lacked of JSON content type or json_encode.
It can also happen if there is an error executing MySQL query.
Finaly the example worked. The problem i had with the email on live server was because i registred with my google account on the app and google filters the emails and sends them to spam. My live domain was to new... to send emails. So i had to "warm up" my ip, and also to set up DNS records for the domain.