当前位置:Gxlcms > PHP教程 > mysql-php中判断数组返回[false]

mysql-php中判断数组返回[false]

时间:2021-07-01 10:21:17 帮助过:20人阅读

mysqlphpjson数组sql

 $sql_notice=mysql_query(sql语句)    $arrData =array();    while ($arrData[] = mysql_fetch_array($sql_notice))    {       $arrData;    }    $sData = array_values($arrData);    if(。。。){    Response::json(200,'success',$sData);    }

请注意 是[false] 不是false
因为前面应需要加了[]

人气教程排行