I have a MySQL Database on my server. I need my android app to two things.
-
Android App needs to send 3 different integers. The MySQL database already has these data types set in them. I’m guessing I need to write a PHP script and basically have Android execute it, correct?
-
Then the Database needs to send a float and an integer back to the Android app. Once again, I’m guessing this needs a PHP script executed by Android as well.
I am not familiar with using PHP and remote databases within Android, so any help is greatly appreciated.
This is really simple if you’re just doing an INSERT.
In the Android application set it up like this:
where cUser.getUserId() is the integer you want to pass to insert.php as the $_GET[‘i’] variable.