摘要:
1.数组添加 //$attr = array("Code"=>"n088","Name"=>"哈萨克族"); //$nation->add($attr); 2.AR添加 //$nation->Code = "n087";//$nation->Name = "朝鲜族";//$nation->add() 阅读全文
摘要:
//数据访问 //造模型对象 $nation = D("Nation"); //查询 //$a = $nation->select(); //查所有,返回关联数组 //$a = $nation->select("n001,n002,n003"); //通过主键查 //$a = $nation->fi 阅读全文