2012-04-24 69 views
0

我用cakephp2.0模型的函數返回的數據,在一臺服務器,CakePHP的從數據庫返回的數據,如:CakePHP的2.0,

Array 
(
    [0] => Array 
     (
      [users] => Array 
       (
        [user_id] => 1 
        [username] => admin 
        [password] => 90c4c3e64eb085da3a9feccc38489281 
        [admin_role] => 24 
        [datetime_reg_time] => 
        [datetime_last_login] => 2012-04-24 15:15:55 
        [email] => 
       ) 

      [roles] => Array(...) 

但另一臺服務器返回的數據是:

Array 
(
    [0] => Array 
     (
      [0] => Array 
       (
        [user_id] => 1 
        [username] => admin 
        [password] => 90c4c3e64eb085da3a9feccc38489281 
        [admin_role] => 24 
        [datetime_reg_time] => 
        [datetime_last_login] => 2012-04-23 11:41:35 
        [email] => 
        [roleId] => 24 
        [roleName] => 管理員 
        [rolePermissions] => 60,61,62,63,64,65,66,67,68,69,70,71,72,93,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,94,95,96,97,98,99,100,101,109,112,108,107 
       ) 

     ) 

我不知道爲什麼..... 是不是PDO的版本?

回答

0

這是PHP的問題,當我安裝了PHP,我應該配置是這樣的:的./configure ....--與-PDO MySQL的= mysqlnd