my pc output value :
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 ) ) 

linux server output value:
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 ) ) 

array key is defference,
at my pc $user['Login']  has value,but at server,$user['Login'] not has 
value,

so....................


在 2012年9月6日星期四UTC+8上午2时01分55秒,cricket写道:
>
> I don't see any difference. Please be more specific about your problem. 
>
> On Tue, Sep 4, 2012 at 10:18 PM, 易斌 <[email protected] <javascript:>> 
> wrote: 
> > 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 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]<javascript:>. 
>
> > To unsubscribe from this group, send email to 
> > [email protected] <javascript:>. 
> > Visit this group at http://groups.google.com/group/cake-php?hl=en-US. 
> > 
> > 
>

-- 
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