👁 View: Model_gallery.php
Path: /home/thiqat5/webcms.thiqatech.com/application/models/Model_gallery.php
Size: 409 B · Modified: 2022-08-23 21:47:34 · Perm: 0644 · Writable
<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Model_gallery extends CI_Model 
{
    public function get_gallery_data()
    {
        $query = $this->db->query("SELECT * 
                        FROM tbl_photo
                        WHERE photo_show_home=?
                        ORDER BY photo_id ASC",array('Yes'));
        return $query->result_array();
    }
}