flash & xml Q - password
flash & xml Q - password
Out of context: Reply #7
- Started
- Last post
- 8 Responses
- unfittoprint0
it's not just that. if you have to retrieve a whole table of users , let's say more than 1000, and send to Flash as a XML [wich will take already quite some time], and then use a for loop to check if it's the correct login, FLash will choke, and probably freeze the user's machine.
wiht only one statement in php will have your answer. soemthing like:
$query = "SELECT * FROM users WHERE username=$username"
$result = @mysql_query($query);if($result){
$user = @mysql_fetch_array($result);
if($user['password'] = md5($password){
echo"login=true";
} else {
echo"login="false";
}
} else {
echo "error connecting to db";
}