rington <[EMAIL PROTECTED]>
> Subject: Re: [PHP-WIN] Cant get maths functions to work in class file
>
> echo() can interpolate a variable, but not an expression such as
> "$this->Unitprice*2"
>
> replace:
> echo " price * two is $this->Unitprice*2
echo() can interpolate a variable, but not an expression such as
"$this->Unitprice*2"
replace:
echo " price * two is $this->Unitprice*2";
by:
$bytwo = $this->Unitprice*2 ;
echo " price * two is $bytwo";
HTH
Ignatius
_
- Original Message -
From: "Mark Harrington"