%PDF- %PDF-
Direktori : /home/ugotscom/public_html/boniface/application/modules/Visa/models/ |
Current File : /home/ugotscom/public_html/boniface/application/modules/Visa/models/Visa_model.php |
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Visa_model extends CI_Model { function __construct() { // Call the Model constructor parent::__construct(); } /////////////Check User////////////////////// public function searchvisa($visa){ $this->db->select('*'); $this->db->from('visa'); $this->db->where('country_id',$visa); $query = $this->db->get(); $row = $query->result_array(); return $row; } public function get_details($id) { $this->db->select('*'); $this->db->from('product'); $this->db->where('product_id',$id); $query = $this->db->get(); $row = $query->row_array(); return $row; } public function country($visa) { $this->db->select('*'); $this->db->from('international'); $this->db->where('id',$visa); $query = $this->db->get(); $row = $query->row_array(); return $row; } public function hospital_details($id) { $this->db->select('*'); $this->db->from('hospitals'); $this->db->where('hospital_id',$id); $query = $this->db->get(); $row = $query->row_array(); return $row; } }