[eluser]Thorpe Obazee[/eluser]
[quote author="jbrozz" date="1220044336"]this is a first step
Quote:class CI_Auth {
function auth($username, $password, $table = 'users', $remember = null)
{
$sql = "SELECT id, username, password FROM ".$table."
WHERE username='".trim($username)."'
AND password='".trim($password)."' LIMIT 1";
$res = $this->db->query($sql);
if($res == true) return true;
else return false;
}
}
post in /system/library/[/quote]