开发者

Connecting J2ME with PHP and mySql [closed]

Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines. It is not currently accepting answers.

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 question

I 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜