日期:2014-05-17 浏览次数:20424 次
$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 "查询无数据!";
}