ok

Mini Shell

Direktori : /proc/self/root/home2/selectio/www/srivarielevators.net/application/models/
Upload File :
Current File : //proc/self/root/home2/selectio/www/srivarielevators.net/application/models/Model_category.php

<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Model_category extends CI_Model 
{
    public function get_category_data($id)
    {
        $sql = "SELECT * FROM tbl_news_category WHERE category_id=?";
        $query = $this->db->query($sql,array($id));
        return $query->result_array();
    }
    public function get_news_data($id)
    {
        $sql = "SELECT * FROM tbl_news WHERE category_id=? ORDER BY news_id ASC";
        $query = $this->db->query($sql,array($id));
        return $query->result_array();
    }
}

Zerion Mini Shell 1.0