我用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的版本?