Re: How to get a total...
| From: | Justin French | Date: | Tue, 01 Oct 2002 14:14:40 +0000 |
| Subject: | Re: How to get a total... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-118369@lists.php.net to get a copy of this message | ||
lol
or you could just try
<?
$value1 = 100;
$value2 = 24;
$total = $value1 + $value2;
?>
on 01/10/02 11:50 PM, Paul Nicholson (paul@dtnicholson.com) wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hey,
> Try:
> http://www.php.net/manual/en/language.operators.arithmetic.php
> I think that'll get you started:)
> ~Paul
>
> On Tuesday 01 October 2002 09:44 am, Chuck Payne wrote:
>> Hi,
>>
>> I am really lost. I have spent an hour looking on the net and php.net for
>> how to get total and how to do math with php. If anyone has a link to a
>> site that show it or can example to me how to do it, that would be great. I
>> have a small project where I am going to track invoices. But they want to
>> be able to see how total amount of the invoice that I am tracking. I know
>> this is got to be simple but it hard if I do have example of the commands
>> to do it.
>>
>> Chuck Payne
>> Magi Design and Support
>
> - --
> ~Paul Nicholson
> Design Specialist @ WebPower Design
> "The web....the way you want it!"
> paul@webpowerdesign.net
>
> "It said uses Windows 98 or better, so I loaded Linux!"
> Registered Linux User #183202 using Register Linux System # 81891
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.6 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
>
> iD8DBQE9mag+DyXNIUN3+UQRAqGLAJ0f4NDQU3/kQ6z7lYGfp8Esa+ZzEwCeLmBU
> eT8+TDyHoS6B9Rjv3TDMwjQ=
> =y7LJ
> -----END PGP SIGNATURE-----