时间:2021-07-01 10:21:17 帮助过:25人阅读
$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 "hello word!"}
if(!empty($result)){
echo "记录为空";
}
$result =mysql_query( "select * from tv_video where title like '%$keyword%' limit $offset,$PageSize");
if (mysql_num_rows($result) < 1) echo '记录集为空';
$result =mysql_query( "select * from tv_video where title like '%$keyword%' limit $offset,$PageSize");
if(count($result)<0)
{
echo "查询无数据!";
}