22 lines
409 B
PHP
22 lines
409 B
PHP
|
<?php
|
||
|
if (!defined('BASEPATH'))
|
||
|
exit('No direct script access allowed');
|
||
|
|
||
|
class Faq_model extends CI_Model {
|
||
|
|
||
|
public function __construct() {
|
||
|
parent::__construct();
|
||
|
}
|
||
|
|
||
|
function list_faq($id=0)
|
||
|
{
|
||
|
$this->db->select('*');
|
||
|
$this->db->from('faq');
|
||
|
if($id!=0){ $this->db->where('id',$id); }
|
||
|
$query = $this->db->get();
|
||
|
//echo $this->db->last_query();exit;
|
||
|
return $query;
|
||
|
}
|
||
|
|
||
|
}
|