RE: [PHP] php stored in mysql

From: Date: Thu, 09 Jan 2003 23:48:00 +0000
Subject: RE: [PHP] php stored in mysql
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-131017@lists.php.net to get a copy of this message
Please be aware that eval code is extremely hard to debug!! Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: tim@hitcho.com.au > -----Original Message----- > From: Paul Roberts [mailto:mail@paul-roberts.com] > Sent: Friday, 10 January 2003 9:33 AM > To: php-general@lists.php.net > 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 > mail@paul-roberts.com > ++++++++++++++++++++++++ > > ----- Original Message ----- > From: "Paul Roberts" <mail@paul-roberts.com> > To: <php-general@lists.php.net> > 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 > mail@paul-roberts.com > ++++++++++++++++++++++++ > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#131017) next »