php查看查询结果是否为空,php如何判断SQL语句的查询结果是否为空?
代码如下:$sql =mysql_query( "select * from tv_video where title like '%$keyword%' limit $offset,$PageSize");$result=mysql_fetch_array($sql);if(!empty($result)){while($result=mysql_fetch_array($sql)){echo ...