Forums
This topic is locked
Adding to existing record
21 May 2003 12:34:54 d sg posted:
im trying to add to an existing record - at the moment it pulls the information fine as and up dates fines but - im looking to add upon an existing record - say 7 is pulled in but i wish to add to that so when the use adds 3, it will equal 10, any help would be ace
- ive tried to do it a number of ways but can't seem to get it to add, honest
cheers Dan
Edited by - daneee69 on 21 May 2003 12:35:18
Replies
Replied 02 Jun 2003 22:34:38
02 Jun 2003 22:34:38 k k replied:
<pre id=code><font face=courier size=2 id=code>update myTable set myNumber = myNumber + $addNumber where username = '$myuser'</font id=code></pre id=code>
hope this helped.
hope this helped.
Replied 10 Jun 2003 10:58:53
10 Jun 2003 10:58:53 d sg replied:
cheers ospinto
Dan
Dan