Welcome Guest, Not a member yet? Register   Sign In
What authentication system for my... web apps?
#25

[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]

Smile


Messages In This Thread
What authentication system for my... web apps? - by El Forum - 08-28-2008, 09:34 AM
What authentication system for my... web apps? - by El Forum - 08-28-2008, 10:15 AM
What authentication system for my... web apps? - by El Forum - 08-28-2008, 10:39 AM
What authentication system for my... web apps? - by El Forum - 08-28-2008, 10:43 AM
What authentication system for my... web apps? - by El Forum - 08-28-2008, 11:14 AM
What authentication system for my... web apps? - by El Forum - 08-28-2008, 12:45 PM
What authentication system for my... web apps? - by El Forum - 08-28-2008, 01:26 PM
What authentication system for my... web apps? - by El Forum - 08-28-2008, 01:26 PM
What authentication system for my... web apps? - by El Forum - 08-28-2008, 02:36 PM
What authentication system for my... web apps? - by El Forum - 08-28-2008, 04:09 PM
What authentication system for my... web apps? - by El Forum - 08-28-2008, 07:19 PM
What authentication system for my... web apps? - by El Forum - 08-29-2008, 01:41 AM
What authentication system for my... web apps? - by El Forum - 08-29-2008, 03:01 AM
What authentication system for my... web apps? - by El Forum - 08-29-2008, 04:08 AM
What authentication system for my... web apps? - by El Forum - 08-29-2008, 05:43 AM
What authentication system for my... web apps? - by El Forum - 08-29-2008, 07:35 AM
What authentication system for my... web apps? - by El Forum - 08-29-2008, 07:44 AM
What authentication system for my... web apps? - by El Forum - 08-29-2008, 08:03 AM
What authentication system for my... web apps? - by El Forum - 08-29-2008, 09:27 AM
What authentication system for my... web apps? - by El Forum - 08-29-2008, 09:42 AM
What authentication system for my... web apps? - by El Forum - 08-29-2008, 09:45 AM
What authentication system for my... web apps? - by El Forum - 08-29-2008, 10:04 AM
What authentication system for my... web apps? - by El Forum - 08-29-2008, 10:06 AM
What authentication system for my... web apps? - by El Forum - 08-29-2008, 10:12 AM
What authentication system for my... web apps? - by El Forum - 08-29-2008, 10:24 AM
What authentication system for my... web apps? - by El Forum - 08-29-2008, 10:27 AM
What authentication system for my... web apps? - by El Forum - 08-29-2008, 10:38 AM
What authentication system for my... web apps? - by El Forum - 08-29-2008, 10:48 AM
What authentication system for my... web apps? - by El Forum - 08-29-2008, 11:12 AM
What authentication system for my... web apps? - by El Forum - 08-29-2008, 11:13 AM
What authentication system for my... web apps? - by El Forum - 08-29-2008, 12:07 PM
What authentication system for my... web apps? - by El Forum - 09-24-2008, 09:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB