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
myrow[actual]);
>
>
>
printf("%s%s%s%s%s%s
To: " "Php-General@Lists. Php. Net"" <[EMAIL PROTECTED]>
Sent: Wednesday, October 24, 2001 1:18 PM
Subject: [PHP] Trying to subtract...no luck. (Long Code)
> Hi. I'm trying to figure out how to subtract 1
Hi. I'm trying to figure out how to subtract 1 variable from another, but
I'm not having any luck.
It works on this page:
";
}
$num = @mysql_num_rows($result);
?>
But not on this page:
---BEGIN LONG PHP STUFF --
This page must be called from the pro
5 matches
Mail list logo