我需要更改此查询以使用准备好的语句。是否可以?
查询:
$sql = "SELECT id, title, content, priority, date, delivery FROM tasks " . $op . " " . $title . " " . $content . " " . $priority . " " . $date . " " . $delivery . " ORDER BY " . $orderField . " " . $order . " " . $pagination . "";
Run Code Online (Sandbox Code Playgroud)
在查询之前,有代码检查 POST 变量并更改查询中变量的内容。
//For $op makes an INNER JOIN with or without IN clause depending on the content of a …
Run Code Online (Sandbox Code Playgroud) 我使用 Unity 为 Android 版本 >= 6.0 制作了一个游戏。该游戏在 9.0 以下的版本中运行良好,但我在 Android 9.0 中使用 Unity 游戏时遇到问题。
我解释一下发生了什么:当游戏第一次启动时,玩家必须登录或注册游戏(连接服务器中的数据库)。但在 9.0 中,当您运行游戏并选择这两个选项之一并触摸按钮登录/注册时,会出现一条消息(我通知用户游戏因网络问题而无法连接到服务器)。
问题的原因可能是什么?也许是因为Android 9.0的网络权限?
Pd:我正在使用 http 连接到服务器。
查看 Google Console,我有 3 个警告:
以下 API 位于灰名单中,Google 无法保证它们适用于可用的 Android 版本。其中一些可能在您的目标 SDK 中受到限制。
这可能是问题所在,因为游戏无法向服务器发出请求?