added files

This commit is contained in:
Ian Christensen
2019-06-27 08:19:59 -07:00
parent ca320c6105
commit 6822968785
435 changed files with 123352 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;
}
}
?>