He's asking how to get a password from a SQL database.
Assuming you have a SQL database connection, use this query:
[lua]
$result = mysql_query("SELECT * FROM users WHERE username = '".mysql_real_escape_string($_POST['username'])."' AND password = '".hash('sha256',$_POST['password'])."'");
if (mysql_num_rows($result)) {
// success
} else {
// fail
}
[/lua]
Remember to hash your password. In the example I used sha256.
Assuming you have a SQL database connection, use this query:
[lua]
$result = mysql_query("SELECT * FROM users WHERE username = '".mysql_real_escape_string($_POST['username'])."' AND password = '".hash('sha256',$_POST['password'])."'");
if (mysql_num_rows($result)) {
// success
} else {
// fail
}
[/lua]
Remember to hash your password. In the example I used sha256.