Please be aware that eval code is extremely hard to debug!!
Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] > -----Original Message----- > From: Paul Roberts [mailto:[EMAIL PROTECTED]] > Sent: Friday, 10 January 2003 9:33 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] php stored in mysql > > > 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 > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php