Math

3 posts by 2 authors in: Forums > CMS Builder
Last Post: July 20, 2008   (RSS)

By Kenny - July 20, 2008

Is there any way to get one field to auto add itself to another field?

<?php echo number_format($record['number1']) ?> + <?php echo number_format($record['number2']) ?>

Re: [sagentic] Math

By Dave - July 20, 2008

Try this:

<?php echo number_format($record['number1'] + $record['number2']) ?>

Let me know if that works for you.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Math

By Kenny - July 20, 2008

That works perfectly!