Re: Sum problem

2007-02-23 Thread junal
well thx for ur reply.i kno its may not be related to cakephp but im using the cakephp framework and showing the result using controller and model...thx. On Feb 23, 8:05 am, "Eric C Blount" <[EMAIL PROTECTED]> wrote: > Please explain how this problem relates to CakePHP, not simply to PHP. > >

Re: Sum problem

2007-02-22 Thread Eric C Blount
Please explain how this problem relates to CakePHP, not simply to PHP. foreach($yourArray as $yourValue) $totalTime += $yourValue; Eric On 2/22/07, Junal Rahman <[EMAIL PROTECTED]> wrote: > > hi everybody ! im net at cakePhp. im trying to show data from different > tables. i have done it. pr

Sum problem

2007-02-22 Thread Junal Rahman
hi everybody ! im net at cakePhp. im trying to show data from different tables. i have done it. problem is i want to sum the total time of the array. let say i have data like this $data['Style']['Sp'][0]['Test'][0]['time']. i have been using a foreach loop to show the data. here Style Sp n Test