Re: SQL sum function to store as single variable
hi all. thanks for replying! =)
what i want to know is that how can I extract the data from the array
and store it to a variable. in ken's reply, below:
On Apr 23, 2:24 am, kdubya <kenwin...@winanstech.com> wrote:
> Your SQL syntax in incorrect.
>
> Array
> (
> [0] => Array
> (
> [$total] => <some_number>
> )
>
> )
>
Let's assume that the array [$total] is 300.00.
Now, how can i extract or get the [$total] value in the array and
store it as an integer/float variable? Like $extractedTotal = 300.00.
Thanks so much. =)
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home