Re: [PHP] fighting with functions

2003-11-21 Thread Tom Rogers
Hi, Friday, November 21, 2003, 7:56:34 PM, you wrote: SD> I could use a little help. click on the link to see my php code for a SD> project that creates an array with a list or items and their cost and SD> calculates tax by using a function called getTax() and also creates a SD> balance by addi

Re: [PHP] fighting with functions

2003-11-21 Thread Evan Nemerson
First off, please try to refrain from cross-posting, especially to that degree. I'm not sure I interpreted the your intentions correctly. If not, could you try to be a little more precise in saying what you _want_ the code to do? The first thing that jumps out at me is in the function getTax. S

RE: [PHP] fighting with functions

2003-11-21 Thread Bronislav Klucka
-Original Message- > From: Bronislav Klucka [mailto:[EMAIL PROTECTED] > Sent: Friday, November 21, 2003 8:31 AM > To: PHP Konference; Sara Daugherty > Subject: RE: [PHP] fighting with functions > > > I'm not sure, if I understood, but try this: > > $items = ar

RE: [PHP] fighting with functions

2003-11-21 Thread Bronislav Klucka
.ShowPrice($balance)."\n"; } ?> > -Original Message- > From: Sara Daugherty [mailto:[EMAIL PROTECTED] > Sent: Friday, November 21, 2003 10:57 AM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; PHP LIST > ; [EMAIL PROTECTED]; [EMAIL PROTECTED];

[PHP] fighting with functions

2003-11-21 Thread Sara Daugherty
I could use a little help. click on the link to see my php code for a project that creates an array with a list or items and their cost and calculates tax by using a function called getTax() and also creates a balance by adding the cost plus the tax in a second function called getBalance(). I m