php - 我的代码似乎正确,但 ajax 响应 500 错误
问题描述
这是我在 GoDaddy 托管服务器上使用的代码。使用 PHP5.6,它会不断返回 500 错误$stmt->get_result();
。谁能帮我找出我做错了什么?
$tel=$_POST['tel'];
$stmt=$mysqli->prepare("select * from affeliate_db where tel=?");
$stmt->bind_param('i',$tel);
$stmt->execute();
$result=$stmt->get_result();
if($result->num_rows){
echo "existed";
}else{
echo "found usr";
}
$stmt->close();
解决方案
推荐阅读
- python - 使用现有列中的特定单词向数据框添加额外列
- akka - 与演员之外的 akka 接待员互动
- flutter - 没有定义“statefulwidget.createstate”和 setstate 的具体实现
- tfs - devops feed 显示来自上游来源的包。我可以禁用它吗?
- python - 带有不等列的 Pandas DataFrame 将用 NA 填充
- c - 理解 Gtk 模板对象
- java - 带弹簧靴的 Hikari cp .. 活动连接始终为 1 .. 不增加但不降低到 0
- c++ - 编译“fopen_s”时出错未在此范围内声明
- ansible - 从引号列表中返回 IP 地址 - Ansible
- sql-server - 使用 Fluentmigrator 转换 SQL 表达式以创建索引