-2
function active_event() {
$this->load->view('active_event');
$a = $this->load->model('Usermodel');
}
型号:
function active() {
$query = $this->db->query(" SELECT * from event WHERE start > FORMAT(Now(),'MM-DD-YYYY') AND end < FORMAT(Now(),'MM-DD-YYYY')");
foreach($query->result_array() as $row){
$image = $row['image'];
$mobile = $row['mobile'];
$email = $row['email'];
$country = $row['country'];
$id = $row['id'];
$this->session->set_flashdata('id', $id);
}
$data = array('name' => 'name',
'image' => 'image',
'mobile' => 'mobile',
'email' =>'email',
'country' =>'country',
'id'=> 'id'
);
return $data;
}
什么是这个问题? – Dexa 2014-09-12 13:30:55