I should have used return($price = $price - ($price *.1)); in the db
and eval($str); Best Wishes & Happy New Year Paul Roberts [EMAIL PROTECTED] ++++++++++++++++++++++++ ----- Original Message ----- From: "Paul Roberts" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 09, 2003 10:29 PM Subject: [PHP] php stored in mysql Hi I want to store some discount codes in mysql, i was thinking of putting $price = $price - ($price *.i); in a mysql field that can be looked up via the coupon number what's the best way to do this and return $price with the discount applied. Thanks Best Wishes & Happy New Year Paul Roberts [EMAIL PROTECTED] ++++++++++++++++++++++++ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php