user authentification using mysql
Posted: Mon Jul 15, 2002 6:07 pm
Hi
Well i have a little problem concerning the result of athentfication ...
In fact i enter a login & password in textfield (everything s normal here :)
and the result of my request goes wrong each time it called login.inc ->
i ve made a class called db.inc which contains every actions on my base , including the check_user() function above ...
Could you help me ...
Well i have a little problem concerning the result of athentfication ...
In fact i enter a login & password in textfield (everything s normal here :)
and the result of my request goes wrong each time it called login.inc ->
Code: Select all
<?
include("db.inc");
$db = new database;
$db->Dbinit();
$db->DbConnect();
$db->Log();
session_start();
if ($REQUEST_METHOD == "POST")
{
if (isset($inp_login))
{
$data = $db->check_user($inp_login, $inp_password);
if (count($data) == 0)
{
echo "ok you' re a vip ...";
}
else if (count($data) == 1)
{
echo "try again later ...";
}
}
}
?>Could you help me ...