MOON
Server: Apache
System: Linux host.sunshiene.com 4.18.0-553.121.1.el8_10.x86_64 #1 SMP Thu Apr 30 09:06:34 EDT 2026 x86_64
User: clientsoftwares (1005)
PHP: 8.1.34
Disabled: system, exec, mail, shell_exec, passthru, popen, proc_open, pcntl_exec, dl, ini_alter, ini_restore, symlink, link, chown, posix_kill
Upload Files
File: /home/clientsoftwares/.trash/application/models/Customer_model.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Customer_model extends CI_Model{
	
	public function add_customer($data) {
		$customerins = $data;
		if(isset($data['c_pwd'])) {
			$customerins['c_pwd'] = md5($data['c_pwd']); 
		}
		return	$this->db->insert('customers',$customerins);
	} 
    public function getall_customer() { 
		return $this->db->select('*')->from('customers')->order_by('c_id','desc')->get()->result_array();
	} 
	public function get_customerdetails($c_id) { 
		return $this->db->select('*')->from('customers')->where('c_id',$c_id)->get()->result_array();
	} 
	public function update_customer() { 
		$this->db->where('c_id',$this->input->post('c_id'));
		return $this->db->update('customers',$this->input->post());
	}
}