I need an application built very simple one initially with the hope of expanding on the initial idea.
-Application Function
Get GPS Coordinates From Device.
Send GPS coordinates to a mysql database using php as the parser.
Display GPS Coordinates on screen, this only needs to be simple as we're focusing on the back end.
4 Buttons on Application that can send 4 differant variables to the php parser.
-Application will have to meet the condition
Condition 1:
if(unable to connect to php address that will be hosted remotly){
print "You can not connect to remote server";
}
else{
Run the Code
}
Condition 2:
GPS Data will be sent by the press of a button.
-Data that will be sent
Latitude - will be sent to php and arrive as $_POST['lat'];
Longitude - will be sent to php and arrive as $_POST['lng'];
Button 1- Variable will be '0' - will be sent to php and arrive as $_POST['btn'];
Button 2- Variable will be '1' - will be sent to php and arrive as $_POST['btn'];
Button 3- Variable will be '2' - will be sent to php and arrive as $_POST['btn'];
Button 4- Variable will be '3' - will be sent to php and arrive as $_POST['btn'];