RE: [PHP-DB] Update data problem
| From: | Justin dot Baiocchi at csiro dot au | Date: | Thu, 24 Jun 2004 05:08:59 +0000 |
| Subject: | RE: [PHP-DB] Update data problem | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-34904@lists.php.net to get a copy of this message | ||
Sam,
I have changed it but the result is still the same:
Basically I am getting $E = $C , it seems that it is not picking up the
value of $G (and there is a value of 500 in there and it is the only row
of data).
-----Original Message-----
From: Sam Chill [mailto:samchill@gmail.com]
Sent: Thursday, 24 June 2004 2:55 PM
To: php-db@lists.php.net
Subject: Re: [PHP-DB] Update data problem
$E= "$C*$G";
Should be:
$E = $C * $G;
Never use quotation marks when doing math. Quotation marks are used
for strings. Hope that helps.
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php