PHP如何判断SQL语句查询的结果是否为空?请看下面的判断代码:
$result =mysql_query( "select * from tv_video where title like '%$keyword%' limit $offset,$PageSize");
if (mysql_num_rows($result) < 1) echo '记录集为空';
声明:如需转载,请注明来源于www.webym.net并保留原文链接:http://www.webym.net/jiaocheng/994.html