iOS Xcode连接到MySQL数据库 [英] iOS Xcode connecting to MySQL database
问题描述
我目前正在为我的学校制作iOS应用程式,而且以前没有iOS编程经验。但是,我确实有HTML / PHP / MySQL的经验。
I'm currently making an iOS App for my school, and have no previous experience with iOS programming. However, I do have experience with HTML/PHP/MySQL.
目前我们有一个基本的标签栏应用程序,底部有5个标签。显然,由于这是一个学校的应用程序,它需要动态,希望我们可以设置一些连接到数据库,检索学校午餐菜单和新闻。
Currently we have a basic tab bar application with 5 tabs at the bottom. Obviously, since this is an app for a school, it needs to be dynamic and hopefully we can set something up to connect to a database and retrieve school lunch menus, and news.
我知道如何使用PHP正常连接数据库,但我不知道如何使用当前版本的Xcode。我做了研究,显然我需要使用webservice和json从数据库安全地获取信息。
I know how to connect to a database normally with PHP, but I have no idea how to do it using the current version of Xcode. I've done research and apparently I need to use a webservice and json to safely get the information from the database.
有没有任何链接给我开始,因为我没有任何经验的这个程序。我不需要做饭,但一个正确的方向的一个点会有所帮助。我真的找不到这个新版本的Xcode的任何链接。
Does anyone have any links for me to get started, because I have no experience at all with this program. I don't need to be spoonfed, but a point in the right direction would help. I really can't find any links for this new version of Xcode.
推荐答案
这里有两个伟大的教程,
Here are two great tutorials that helped me a lot
如何为iOS应用程序写一个简单的PHP / MySQL Web服务
这篇关于iOS Xcode连接到MySQL数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!