php7.0下 查询符合条件的数量$count这块写的不对,哪位大虾帮改下
$sql="selectid,title,left(sdate,10)sdate,leifromdown";$sql=$sql."orderbyiddesc";$resu...
$sql = "select id,title,left(sdate,10) sdate,lei from down";
$sql = $sql." order by id desc";
$result = $mysqli->query($sql);
while($ar=mysqli_fetch_row($result)){$count = $ar[0];} 展开
$sql = $sql." order by id desc";
$result = $mysqli->query($sql);
while($ar=mysqli_fetch_row($result)){$count = $ar[0];} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询