query("select ddid,cpid,sl from $table_dd where uid=".$_SESSION['dxc_uid']." and ddzt=0 and gwczt=0 and Type=201 order by ddid desc limit 50");
while ($db -> next_record()){
$rs = $db1->query_first("select Title,content,jg,pic,chk,yj from $table_cp where id=".$db -> f('cpid')."");
if($rs1['dengji']==1){
$jg=$rs['jg'];
}else{
$jg=$rs['yj'];
}
?>