说明你的查询失败了,返回的查询结果有问题,打印查询语句分析一下吧

解决方案 »

  1.   

    }if(shoptype=="$xuanze"){
    $sql1=mysql_query("select count(*) as total from tb_members where shoptype='$search' order by mid");
    }elseif(user=="$xuanze"){
    $sql1=mysql_query("select count(*) as total from tb_members where user='$search' order by mid");
    }elseif(shopname=="$xuanze"){
    $sql1=mysql_query("select count(*) as total from tb_members where shopname='$search' order by mid");
    }
    条件出错了,$sql为空,正确如
    if($search=="shopname")