$string=$_POST['string'];
$mysql="select * from admin_manager_artice where a_content,a_title link '%".$string."%' limit $offset,$pagesize";这句查询语句是哪出错了哦?不对。请问要怎么改

解决方案 »

  1.   

      
    $mysql="select * from admin_manager_artice where a_content,a_title like '%".$string."%' limit $offset,$pagesize";
      

  2.   

    $rs=mysql_query($mysql) or die('query error');还是返回query error,请问怎么回事
      

  3.   


    <?php 
    $mysql="select * from admin_manager_artice where a_content  like '%".$string."%'  and a_title like '%".$string."%' limit $offset,$pagesize";
    ?>
      

  4.   

    本帖最后由 xuzuning 于 2010-04-03 19:29:35 编辑