PIPIONE
$set = M("News")->where("catid = 6")->select();foreach ($set as $r){$aa[ziduan1]=$r['ziduan'];$aa[ziduan2]=$r['ziduan'];$aa[ziduan3]=$r['ziduan'];//所有字段都列出M("News")->add($aa);}如果只是一条数据可以这样写$set = M("News")->where("catid = 6")->find();M("News")->add($set);