Blackberry 连接到远程 mySql DB
我正在考虑开发一个需要从远程 mySql 数据库读取的应用程序(在 Blackberry JDE 中)。
以前,我通过 post 将数据发送到 php 脚本来将数据添加到 mySql 数据库。然而,我现在正在寻找一种解决方案来连接到托管数据库,执行简单的查询并以某种方式在设备上呈现返回的数据。
有人能指出我正确的方向吗?或者更好地为我提供一个从 mysql 数据库读取数据并在设备上渲染数据的基本示例?
(我希望它像 php 一样简单!)
非常感谢
I am looking at developing an application (in the Blackberry JDE) that has the need to read from a remote mySql database.
Previously, I have added data to mySql databases by sending data to a php script via post. However I am now looking for a solution to connect to a hosted database, execute simple queries and render the returned data in some way shape or form upon the device.
Can anyone point me into the correct direction? Or even better provide me with a basic example of reading data from a mysql db and rending the data upon the device?
(I wish it was as easy as php!)
Many thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果 Blackberry 可以建立 HTTP 连接,那么您就可以以正常方式在服务器端执行其他所有操作。即创建一些 php 页面,然后浏览这些页面以收集您想要返回的任何格式所需的数据。
或者你的意思是你无法建立HTTP连接,你需要直接连接到MySQL服务器?
If the Blackberry can make an HTTP connection then you can do everything else on the server side in the normal way. I.e. create some php pages, and browse those to collect the data you need in whatever format you want to return.
Or do you mean that you are not able to make an HTTP connection, and you need to connect to the MySQL server directly?