1.$id=$_GET['id'];
2.$qry="select distinct  a.NID,a.NTitle from News a ,NewsCategory b where NPublish='1' 
and NRPublish='1' a.NID>".$id;

解决方案 »

  1.   

    if(id==null)
    id="B2993FB9B49D42C9968F6FA64F6A67A5";//初始id这行哪:) 呵呵
      

  2.   

    if(empty($id))
    $id="B2993FB9B49D42C9968F6FA64F6A67A5";//初始id
      

  3.   

    $id=$_GET['id'];//换成php语法
    if($id==null)
    $id="B2993FB9B49D42C9968F6FA64F6A67A5";//初始id$qry="select distinct  a.NID,a.NTitle from News a ,NewsCategory b where NPublish='1' 
    and NRPublish='1' a.NID>".$id;//换成php链接语法
      

  4.   

    $id = $_GET['id'];
    if (empty($id))
    {
        $id = "B2993FB9B49D42C9968F6FA64F6A67A5";
    }
    $qry = "select distinct  a.NID,a.NTitle from News a ,NewsCategory b where NPublish='1' and NRPublish='1' and a.NID>'$id' ";