我有以下笨模式功能:Codeigniter。如何返回数据库中变量值超过字段的记录?
function get_successful($project_id, $amount_backed){
$data = '';
$this->db->where('id', $project_id);
$this->db->where($amount_backed >= 'funding_goal'); //HELP HERE
$this->db->where('published', '1');
......
return $data;
}
我只需要得到记录,其中的变量$amount_backed
高于或等于场'funding_goal'
。
这怎么可以用codeigniters活动记录来完成?