简体   繁体   English

连接phpmyadmin和BlackBerry应用程序(Eclipse)

[英]Connecting phpmyadmin and BlackBerry application (Eclipse)

Well long story short, my application needs to connect to the database in the web to collect information about login details and stuffs. 长话短说,我的应用程序需要连接到Web中的数据库以收集有关登录详细信息和内容的信息。 I found out that I can use either JDBC or a webservice but the thing is, I dont believe that we can use JDBC in BlackBerry or if we can it would be very complicated, CMIIW so I had to use a webservice. 我发现我可以使用JDBC或Web服务,但事实是,我不相信我们可以在BlackBerry中使用JDBC,或者如果可以的话,它很复杂,CMIIW,所以我不得不使用Web服务。 Can anyone please elaborate what should I exactly do? 谁能详细说明我该怎么办? I got the basic concept but completely blank on what to do? 我掌握了基本概念,但是在操作上完全空白了? Where should I create the webservice and how do I connect it to the BlackBerry application and Phpmyadmin? 我应该在哪里创建Web服务,以及如何将其连接到BlackBerry应用程序和Phpmyadmin? Thank you in advance 先感谢您

On the server: 在服务器上:

  1. Install MySQL 安装MySQL
  2. Install PHP 安装PHP
  3. Make a php-script that gets POST- or GET- request, connects to MySQL, processes return values and returns xml. 制作一个获取POST或GET请求的php脚本,连接到MySQL,处理返回值并返回xml。

On the device: 在设备上:

  1. Connect to the created php-script, make POST- and/or GET- request and process received xml 连接到创建的php脚本,发出POST和/或GET请求并处理收到的xml

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM