Follow the setup instructions
Setup
- Put the PHP code on your web server
- Set the SQLKEY in your app and in the PHP code, they must match for this code to work
Note: If you want to use special characters in the password string, then do not UriEncode the SQLKEY, see also here.- Setup your database connection information in the php script
- Try out the code
Special Notes
- Returns HTTP code 200 for a successful SELECT query
- Returns HTTP code 201 to return anything that's not a SELECT statement
- Returns HTTP code 400 for any error with your SQL or setup
- Make sure to remove any page redirects for mobile devices on your webpage, else the App Inventor app will not be able to access the php script and will get an 404 error: page not found instead.
Also read Q6 here App Inventor Tutorials and Examples: MySQL | Pura Vida Apps
Taifun