Current File : /home/giriqfky/public_html/Barga/application/modules/sessions/models//Sessions_model.php
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Sessions_model extends CI_Model
{
var $table = TABLE_USERS;
var $table_user_role = TABLE_USER_ROLES;
public function __construct()
{
parent::__construct();
}
public function verifyLogin($user_name, $password)
{
$query = $this->db->select('*')->where('user_password', $password)->group_start()->where(array('user_email' => $user_name))->or_where(array('user_name' => $user_name))->group_end()->get($this->table);
return $query;
}
public function updateUserProfile($data_array, $user_id){
$this->db->where('user_id', $user_id);
$this->db->update($this->table, $data_array);
}
}