Re: Multiplication of double
| From: | Foong | Date: | Sun, 19 Jan 2003 19:01:41 +0000 |
| Subject: | Re: Multiplication of double | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-132188@lists.php.net to get a copy of this message | ||
have you try echo $price and $qty separately to check if they are correct?
If they are correct, can you post you code? so we can take a look.
Foong
Cesar Aracena <icaam@icaam.com.ar> wrote in message
news:000001c2bfeb$cecbd5c0$7a00a8c0@NOTEBOOK...
Hi all,
I guess this problem might sound childish for most of you, but I'm
having it right now. I get two numbers from a FORM, one price and one
quantity and I need to make a multiplication with them in order to store
the total amount also as a double expression... I'm trying with:
$totalprice = $price * $qty;
but when I echo the, it gives me just plain old 0 (zero). Any
suggestions?
Thanks in advance,
Cesar L. Aracena
icaam@icaam.com.ar
caracena@infovia.com.ar
(0299) 156-356688
Neuquén (8300) Capital
Argentina