- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
if(!empty($_GET['new_time'])){
$sql2 = "SELECT * FROM ".$table_name." WHERE id=".$_GET['new_time'];
$result2 = mysqli_query($conn, $sql2);
$rows = mysqli_fetch_assoc($result2);
$mobile_number = $rows['mobile_number'];
// Create instance with key
$key = 'AIzaSyD1tPfs4s2dYYHMkCOqNZoVsTkDyud-9Yg';
$googer = new GoogleURLAPI($key);
$message = lang_content(98, $rows['preferred_language'])." ".$shortDWName;
$send_sms($mobile_number,$message,$city_id);
}
如果有人触发了 new_time,我会得到这个错误。
send_sms is a function to send a message.
最佳答案
调用该函数时不需要在函数名中添加$
:
只需使用send_sms($mobile_number,$message,$city_id);
关于PHP 错误 : Function name must be a string/Undefined Variable send_sms,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38583253/
我正在尝试从 Android 应用程序发送短信,编写了以下代码,但出现编译错误:“找不到符号变量 SEND_SMS”。我还导入了“android.Manifest.permission”但没有解决。请
大家晚上好 我有一个关于我们在 Android 应用程序中使用权限的方式即将发生的变化的问题。我最近收到了一封来自 Google Play 团队的电子邮件,通知我对我使用的特定权限的更改,例如SEND
我正在使用以下权限: 当 Android 请求 API >= 23 的权限时,会出现一个对话框,消息如下: "Allow AppName to send and view SMS messages?
所以我的应用程序有一个问题,它具有发送短信的功能。但是,如果没有该功能,它也可以正常工作。我得到的信息是人们无法在平板电脑上安装它。那么我能做些什么,在平板电脑上禁用该功能,但在手机上保留它。 这是我
我正在尝试创建一个供我个人使用的应用程序。我想在更好的百分比低于 5% 时向一个号码发送消息。 我正在获取电池电量并尝试使用 SmsManager 发送短信,如下所示。 private void ge
我在 google play 上发布了我的应用程序,我的应用程序在手机和平板电脑上,该应用程序使用发送短信功能,以防我们在手机上发布我的应用程序时发送电子邮件google play,该应用程序不是
这个问题已经有答案了: Android permission doesn't work even if I have declared it (12 个回答) 已关闭 1 年前。 我正在尝试从一个模拟
这个问题在这里已经有了答案: Android permission doesn't work even if I have declared it (12 个答案) 关闭 7 年前。 我正在尝试从我
我在 Play 商店发布了我的应用程序,但它不适用于平板电脑。我在 Google Play 商店检查了该应用程序的功能,经过一些研究发现我的应用程序具有一些电话功能,我认为这是有罪的一方。这是我的 l
我正在编写一个应用程序,它将通过短信向输入的号码发送消息。但是,当我尝试发送消息时,我收到错误“用户 10074 没有 android.permission.SEND_SMS”,即使我在 list 中
这个问题已经有答案了: 奥 git _a (12 个回答) 已关闭 1 年前。 在我的第一部使用 Lollipop 的手机中,程序运行良好,我可以发送和接收短信。但在我使用棉花糖的第二部手机中,我的应
我正在启动一个简单的应用程序,只需按一下按钮即可发送短信。因为我需要网络,所以我正在我的手机上测试这个。该应用程序第一次构建良好,但按下按钮没有执行任何操作,因为我忘记添加权限 android.per
下面是我的 list 代码,我已经在第 1 行添加了 SMS 权限。有人可以识别问题,但我找不到问题出在哪里吗? // line 1 " "
if(!empty($_GET['new_time'])){ $sql2 = "SELECT * FROM ".$table_name." WHERE id=".$_GET['new_time
我按照文档在我的应用中集成了 Firebase App Invite。 https://firebase.google.com/docs/invites/android 我想知道 Firebase 如
我是一名优秀的程序员,十分优秀!