标签:io ar on ad new res php 方法 table
方法一:
$carrymodel = D(“Carry”);
$condition["FromAddress"] = array(“like”, “%”.$rname);
$condition["ToAddress"] = array(“like”, “%”.$rname);
$carryrecord = $carrymodel->where($condition)->findAll();
方法二:
$model = new Model();
$carryrecord = $model->table(‘dh_info_carry a’)
->field(‘a.*’)
->where(‘a.ToAddress like “%’.$rname.’” or a.FromAddress like “%’.$rname.’”‘)
->findAll();
标签:io ar on ad new res php 方法 table
原文地址:http://www.cnblogs.com/yang95/p/4133656.html