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:
?php
$db_name = comanche;
$table_name = ProjectTasks;
$connection = @mysql_connect($db,$user,$pass) or die(Couldn't
Connect.);
$db = @mysql_select_db($db_name,
]);
printf(TRTD%s/TDTD%s/TDTD%s/TDTD%s/TDTD%s/TDTD%s/T
- Original Message -
From: Michael O'Neal [EMAIL PROTECTED]
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
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
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
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
5 matches
Mail list logo