如何使用PHP的MySQL与Android的职位和获得数据? [英] How to use php mysql with Android for post and get data?

查看:126
本文介绍了如何使用PHP的MySQL与Android的职位和获得数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何使用PHP的MySQL与Android应用get和通过Android应用程序发布的数据。我知道JSON解析为与JSON format.But在创建PHP数据库时,这里正在打造MySql.So我不知道该怎么with.Can工作有人帮我请。

I want to know how to use php MySql with Android application for get and post the data through android application. I know the JSON Parsing as and when creating database in php with JSON format.But here is creating in MySql.So i don't know how to work with.Can someone help me please.

下面是PHP的MySQL的屏幕快照。

Here is snap shot of PHP MySql Screen .

推荐答案

要连接到你需要有像一个connector.php MySQL数据库,这将是很好的用于写作的一类,阅读,更新和删除数据。
然后打电话给JSON。

To connect to the MySQL database you need to have something like a connector.php and it would be good to use a class for writing, reading, updating and deleting the data. Then call to JSON.

JSONObject的JSON = jsonParser.makeHtt prequest(url_create_entry,POST,则params);

JSONObject json = jsonParser.makeHttpRequest(url_create_entry, "POST", params);

这篇关于如何使用PHP的MySQL与Android的职位和获得数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆