gpt4 book ai didi

PHP 错误 : Function name must be a string/Undefined Variable send_sms

转载 作者:可可西里 更新时间:2023-11-01 00:29:54 24 4
gpt4 key购买 nike

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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com