Re: Multiplication of double

From: Date: Sun, 19 Jan 2003 19:25:06 +0000
Subject: Re: Multiplication of double
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-132189@lists.php.net to get a copy of this message
On Monday 20 January 2003 02:51, Cesar Aracena wrote: > 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? What is $price and what is $qty? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Everything I like is either illegal, immoral or fattening. -- Alexander Woollcott */

« previous php.general (#132189) next »