$this->db->like('caller_ip',$condition);
$this->db->select('caller_ip, send_ip,star_time,end_time');
$query = $this->db->get('voice');return $query->result_array();模糊这样写对么?不对改怎么改?
$this->db->select('caller_ip, send_ip,star_time,end_time');
$query = $this->db->get('voice');return $query->result_array();模糊这样写对么?不对改怎么改?
echo $this->db->last_query(); 看看出来的sql语句是什么
class PitypeModel extends Model {
$query = array();
$query = $this->db->get_where(‘table_name’, array('recodname' => $pitypetype));
$query->result();
return $this->db->select('caller_ip, send_ip,star_time,end_time')
->like('caller_ip',$condition)
->get('voice')->result_array();