dblogin
<?php
class Dblogin extends CI_Model
{
var $table='bpo_admin_login';
function Dblogin()
{
// Call the Model constructor
parent::__construct();
$this->load->database();
}
function getadmindetails($query)
{
$sql="select * from $this->table ".$query." limit 0,1";
$query = $this->db->query($sql);
return $query->row();
}
function password_info($email_id)
{
$query=$this->db->query("select * from $this->table where email = '".addslashes($email_id)."'");
return $query->row();
}
}
?>
Comments
Post a Comment