在Xcode中访问数据库 [英] Accessing a database in Xcode

查看:155
本文介绍了在Xcode中访问数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Xcode中访问数据库的最佳方法是什么?我正在尝试构建一个应用程序,要求人们使用正确的凭据登录并从服务器获取某些数据并将其显示在应用程序中。

What is the best way to access a database in Xcode? I am attempting to build an app that requires people to login with correct credentials and get certain data from the server and display it in the app.

有没有办法在Xcode中编写SQL而不用红色下划线?要登录,我会使用登录脚本访问php文件吗?我不是在问我怎么样,我只是想要一些建议和一些有用的提示和指示正确的方向/任何有用的资源我想要做什么?

Is there a way to write SQL in Xcode without it underlining red? To login would I access the php file with the login script? I am not asking how, I just want some advice and some useful tips and pointers in the right direction/any useful resources for what I am trying to do?

谢谢你你的时间

推荐答案

是的,你可以添加php文件和xcode,并在php文件中写入select查询。在xcode中使用post创建服务器连接并提供php文件的路径

Yes, you can add the php file along with xcode and write the select query inside php file. in xcode create a server connection using post and provide the path of your php file

这篇关于在Xcode中访问数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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