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
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
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
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]);
>
4 matches
Mail list logo