Advanced Web Server Manager
Complete File Manager & Terminal - Standalone Version
By Sid Gifari | Gifari Industries
Current path:
/
/
home
/
qtdcvxyp
/
public_html
/
sms
/
aa
/
application
/
models
✏️
Editing: Mark_model.php
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class Mark_model extends CI_Model { public function __construct() { parent::__construct(); } public function get($id = null) { $this->db->select()->from('exam_results'); if ($id != null) { $this->db->where('id', $id); } else { $this->db->order_by('id'); } $query = $this->db->get(); if ($id != null) { return $query->row_array(); } else { return $query->result_array(); } } public function remove($id) { $this->db->where('id', $id); $this->db->delete('exam_results'); } public function add($data) { if (isset($data['id'])) { $this->db->where('id', $data['id']); $this->db->update('exam_results', $data); } else { $this->db->insert('exam_results', $data); return $this->db->insert_id(); } } }
💾 Save Changes
❌ Cancel