Re: Updating a record with math and division

From: Date: Sat, 29 Dec 2001 00:05:49 +0000
Subject: Re: Updating a record with math and division
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-15257@lists.php.net to get a copy of this message
That isn't the answer I was looking for... Since you are so <sarcasm>nice</sarcasm> could you be so kind in point me where these golden docs are? I looked all over php.net and mysql.com, nada.... not only that the three books I have as well. I am a newbie at this, and do need a bit of hand holding thanks... "Miles Thompson" <milesthompson@ns.sympatico.ca> wrote in message news:php.db-15251@news.php.net... > > Read the docs for the database in question. They will tell you what is and is not allowed. > Miles Thompson > > On Friday 28 December 2001 06:26 pm, Todd Williamsen wrote: > > Ok.... > > > > So to update a record lets say... > > > > I have a current value of 150 and the new value will be 250 now how would I > > total them to equal 400? > > > > I was thinking > > > > $sql = "UPDATE $table value1 = value1 + ? > > > > is that correct? how do you update it with simple math? > > > > What about division... > > > > take the current value in the database + the new value divided by another > > number, lets say another field

« previous php.db (#15257) next »