View Single Post
Old 02-13-2007, 03:25 PM   #8 (permalink)
Vormund
 
Monster Techie

Join Date: May 2004

Location: Tucson, AZ, USA

Posts: 1,183

Vormund

Send a message via AIM to Vormund Send a message via MSN to Vormund Send a message via Yahoo to Vormund
Default

PHP Code:
function logonUser($email$passwd){
    
session_register("logged");//Create session logged.
    
$passwd cryptpass($passwd);//Encrypt password
    
echo $passwd.":";
    
$query "select * from users where email = '$email'";
    
    
$check mysql_fetch_array($query);
    echo 
$check['passwd'];
    
    
$result mysql_query($query);
    if(
$row mysql_fetch_array($result)) {
        
$query "insert into test(email, passwd) values('$email', '$passwd')";
        
$result mysql_query($query);
        
$_SESSION['logged'] == true;
        
header ('Location: refill.php');
    } else {
        
$message "Logon Failed";
    }

Using that function, (password in the query was removed), does it output the same password? ...everything looks ok...:mad:
__________________
Vormund is offline