Hi, everyone,
I am doing a shopping-chart.
And I have users,goods, and users_goods. There are three tables.
I can add and delete from the app.
I create Users HABTM Goods.

Now, I have the array when I check one user's shopping-chart. I get the
array:


Array
(
   [0] => Array
       (
           [id] => 1
           [name] => book
           [price] => 100
       )

   [1] => Array
       (
           [id] => 4
           [name] => mini
           [price] => 35000
       )

   [2] => Array
       (
           [id] => 2
           [name] => apple
           [price] => 200
       )

)

HOW can I get the SUM about this particular array? Thanks in advanced.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to