Posted by Tom
2013-11-12
Hi,
I think you are trying to authenticate against a database...am I correct? First, you need to create a user table that stores passwords. Second, build and run a sql statement to check if there is a password that matches the password submitted from the form. If yes, flag it as "logged-in" in a session variable, and that's basically it!
I think you are trying to authenticate against a database...am I correct? First, you need to create a user table that stores passwords. Second, build and run a sql statement to check if there is a password that matches the password submitted from the form. If yes, flag it as "logged-in" in a session variable, and that's basically it!
thank you tom for this script !!
how doing if i have a (user's table (php-mysql) )
is it possible de replace a line of script config_inc.php
define( 'LOGIN_PASSWORD', 'pass' );
with :
define( 'LOGIN_PASSWORD', 'function(pass)' );
function (pass){
$pass=$pass;
mysql_connect($bdhost, $user, $pass);
........
return $pass;
}
thank you Tom