this is a login demo,source code: 

$username= $this->data['Login']['username']; 
> $password= md5($this->data['Login']['password']); 
> $user = $this->Login->find('first',array('conditions'=>array( 
> 'Login.username = '=>$username, 'Login.password = '=>$password )));
> print_r($user);
> exit ;



on my pc(windows 7/php5.3.8/apache2) is ouput: 

Array ( [Login] => Array ( [id] => 9 [username] => aaaaaa [password] => 
> 04b35cf604476680b22c4bb8b0888e4a [created] => 2012-08-03 10:13:38 [groupid] 
> => 10 [status] => 1 [lastlogintime] => 2012-08-03 10:14:07 [lastloginip] => 
> 192.168.12.78 [logincount] => 2 ) )




but,on linux server(Centos/nginx/php5.3.5) is ouput:

Array ( [0] => Array ( [id] => 9 [username] => aaaaaa [password] => 
> 04b35cf604476680b22c4bb8b0888e4a [created] => 2012-08-03 10:13:38 [groupid] 
> => 10 [status] => 1 [lastlogintime] => 2012-08-03 10:14:07 [lastloginip] => 
> 192.168.12.78 [logincount] => 2 ) )




Why is it so???

please help me

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.


Reply via email to