Connecting J2ME with PHP and mySql [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citation开发者_运维技巧s.
Closed 8 years ago.
Improve this questionI am working on mobile app and i need to connect to database on a server, i would like to use php and mysql can anyone direct me to a good tutorial on using J2ME with php mysql?
I think what you are looking for is how to write a web-service using php & mysql and how to access it using j2me.
I think using SOAP as suggested by @coding.mof is a bit too complicated for a beginner. For starters, you can make a simple web service in PHP by just echoing a json encoded return.
<?php
$somethingToReturn = //do something`
echo json_encode($somethingToReturn); ?>
Use HttpClient to access web services in Java and then parse the json string to get the data you need.
精彩评论