Re: [PHP] Trying to subtract...no luck. (Long Code)

2001-10-24 Thread Michael O'Neal
Thanks all...I got what I needed. I'm amazed at how many different ways there are to do the same thing! mto -- Michael O'Neal Web Producer/ Autocrosser ST 28 '89 Civic Si - M A N G O B O U L D E R - http://www.thinkmango.com e- [EMAIL PR

Re: [PHP] Trying to subtract...no luck. (Long Code)

2001-10-24 Thread Chris Hayes
Jeez michael, i'm sorry but i am not going to go through all of your code. I do have a suggestion for you, without looking at the code. As you know. php has flexible variables. I mean, if you say $a=1 then $a is an integer, if you say $b='i' then $b is a string. Very easy to make code qui

Re: [PHP] Trying to subtract...no luck. (Long Code)

2001-10-24 Thread Chuck Theobald
Another way to accomplish this, preferred in my mind, is: while ($myrow = db_fetch_array($result)) : while (list($key,$val) = each($myrow)) : $$key = $val; endwhile; $difference = $budget - $actual; . . . endwhile; Chuck At 1:34 PM -0700 10/24/01, Jim Lucas wrote: >one problem on t

Re: [PHP] Trying to subtract...no luck. (Long Code)

2001-10-24 Thread Jim Lucas
one problem on the second script you are trying to use variables that are in an array. if this is where you are talking about you need to specify the array[key] > while ($myrow=DB_fetch_array($result)){ > > > $difference = ($budget - $actual); $difference = ($myrow[budget] - $myrow[actual]); >