摘要: 1.数组添加 //$attr = array("Code"=>"n088","Name"=>"哈萨克族"); //$nation->add($attr); 2.AR添加 //$nation->Code = "n087";//$nation->Name = "朝鲜族";//$nation->add() 阅读全文
posted @ 2016-12-22 18:37 哔哩哔哩干杯 阅读(331) 评论(0) 推荐(0) 编辑
摘要: //数据访问 //造模型对象 $nation = D("Nation"); //查询 //$a = $nation->select(); //查所有,返回关联数组 //$a = $nation->select("n001,n002,n003"); //通过主键查 //$a = $nation->fi 阅读全文
posted @ 2016-12-22 14:53 哔哩哔哩干杯 阅读(217) 评论(0) 推荐(0) 编辑