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;
2.$qry="select distinct a.NID,a.NTitle from News a ,NewsCategory b where NPublish='1'
and NRPublish='1' a.NID>".$id;
id="B2993FB9B49D42C9968F6FA64F6A67A5";//初始id这行哪:) 呵呵
$id="B2993FB9B49D42C9968F6FA64F6A67A5";//初始id
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链接语法
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' ";