使用我的iOS应用连接到MySQL数据库 [英] Connecting To MySQL Database with my iOS App

查看:368
本文介绍了使用我的iOS应用连接到MySQL数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为我的学校编写一个iOS应用程序,以跟踪学生的奖励,成绩等. 我需要使用我的应用程序连接到MySQL在线数据库,我需要能够上传到它,查询它并下载结果以显示在我的应用程序中.

I am writing an iOS app for my school to keep track of pupil's rewards, grades, etc. I need to connect to a MySQL online database with my app, I need to be able to upload to it, query it, and download the results to display in my app.

我认为我需要通过PHP页面来执行此操作,但是没有关于如何执行此操作的合理清晰的教程.任何帮助将不胜感激!

I think I need to do this via a PHP page, however there is no reasonably clear tutorial on how to do it. Any help would be appreciated!

提前谢谢!

推荐答案

您需要具有PHP/ASP/JSP/etc脚本的Web服务器才能与数据库进行交互.创建具有SELECT,UPDATE或INSERT之类的常用操作的API,然后在iOS应用程序内部调用此URL.

You need a webserver with a PHP/ASP/JSP/etc script to interact with the database. Create an API with common operations like SELECT, UPDATE or INSERT, and then call this url's inside the iOS app.

使用完整链接:

  • Making HTTP and HTTPS Requests
  • Sending HTTP-Post ios
  • Authenticating Iphone Login with PHP/MySQL and HTTP Responses

这篇关于使用我的iOS应用连接到MySQL数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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