Re: [PHP-WIN] Cant get maths functions to work in class file

2003-09-04 Thread Miha Nedok
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

Re: [PHP-WIN] Cant get maths functions to work in class file

2003-09-03 Thread Ignatius Reilly
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"