Moved to PHP folder

This commit is contained in:
2019-06-30 22:04:19 -04:00
parent 6822968785
commit b198cd212f
433 changed files with 0 additions and 0 deletions

View File

@ -0,0 +1,30 @@
<?php
class Admin_model extends CI_model
{
function login_valid($username,$password)
{
$this->db->from('tbl_usermaster');
$this->db->where('user_name',$username);
$this->db->where('user_password',$password);
$this->db->where('user_status','active');
if($query=$this->db->get())
{
return $query->row_array();
}
else
{
return false;
}
}
public function totalrows($tablename='',$fields='')
{
$this->db->select($fields);
$this->db->from($tablename);
$query = $this->db->get();
$responce = $query->num_rows();
return $responce;
}
}
?>