forked from ghouar-t/SaeDEV2.2
24 lines
458 B
PHP
24 lines
458 B
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
|
|
|
class Model_site extends CI_MODEL {
|
|
|
|
public function __construct(){
|
|
$this->load->database();
|
|
}
|
|
|
|
|
|
|
|
public function get_evenement($id)
|
|
{
|
|
$res=$this->db->query("SELECT * from evenement WHERE id=$id");
|
|
return $res->row();
|
|
}
|
|
|
|
public function get_commentaire($id)
|
|
{
|
|
$res=$this->db->query("SELECT * FROM commentaire WHERE id_event=$id");
|
|
return $res->result_array();
|
|
}
|
|
|
|
} |