我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

在cpanel中托管时,响应为空

The code is working on a local server but when it was hosted in cpanel it return an empty response.on a local server , the response.hosted on cpanel , the response is empty. Is this because of the code? or a rule or is it because of cpanel

$data=array();

$q=mysqli_query($con,"SELECT a.*,a.date_added AS date_added2,a.status AS entry_status,a.added_by AS entry_provider FROM entries a WHERE a.status = 'Approved' ORDER BY a.id DESC") 
or die(mysql_error());

while ($row=mysqli_fetch_object($q)){
    $data[]=$row;
}

echo json_encode($data);

?>

近期文章

  • 如何在Behat FeatureContext中获取标签
  • 过滤DirectoryIterator输出中的文件
  • RedHat 7错误=>需要:libcrypto.so.10
  • 用ajax自动完成字段wordpress
  • MySQL查询不返回PHP中的值
  • 单击按钮时如何清除标签?
  • PHP将变量移动到另一个文档
  • 自定义分类Wordpress的永久链接
  • PHP内的密码散列无法正常工作
  • 使用POST无法使用$ var回显html <form>
  • 在stackoverflow上解释/ users / uid / name [重复]
  • PHP:多个数组的一个选择选项
  • Yii2:如何使用UrlManager重定向到?
  • 什么是细长树枝扩展中的basepath()
  • 在上传文件夹中存储图像时出错
  • 从mysql查询中创建多个页面
  • 教义+ apigility:永远403禁止
  • (codeigniter ajax)不想保存数据
  • laravel-chartjs没有显示任何内容
  • laravel中的刀片模板中的两个模型

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华