Server IP : 103.191.208.50 / Your IP : 216.73.216.53 Web Server : LiteSpeed System : Linux orion.herosite.pro 4.18.0-553.53.1.lve.el8.x86_64 #1 SMP Wed May 28 17:01:02 UTC 2025 x86_64 User : celkcksm ( 1031) PHP Version : 7.4.33 Disable Function : show_source, system, shell_exec, passthru, popen, exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/celkcksm/banking.ncriptech.com/application/models/admin/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php class Join_model extends CI_Model{ public function get_all_serverside_payments() { $this->db->select(' ci_payments.id, ci_payments.invoice_no, ci_payments.grand_total, ci_payments.currency, ci_payments.created_date, ci_users.username as client_name, ci_users.email as client_email, ci_users.mobile_no as client_mobile_no '); $this->db->join('ci_users','ci_users.user_id = ci_payments.user_id','left'); return $this->db->get('ci_payments')->result_array(); } public function get_user_payment_details(){ $this->db->select(' ci_payments.id, ci_payments.invoice_no, ci_payments.payment_status, ci_payments.grand_total, ci_payments.currency, ci_payments.due_date, ci_payments.created_date, ci_users.username as client_name, ci_users.firstname, ci_users.lastname, ci_users.email as client_email, ci_users.mobile_no as client_mobile_no, ci_users.address as client_address,' ); $this->db->from('ci_payments'); $this->db->join('ci_users', 'ci_users.user_id = ci_payments.user_id ', 'left'); $query = $this->db->get(); return $query->result_array(); } } ?>