Re: Incrementing a table cell
| From: | John S. Huggins | Date: | Fri, 28 Jun 2002 11:54:40 +0000 |
| Subject: | Re: Incrementing a table cell | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-104298@lists.php.net to get a copy of this message | ||
Table fubar
ID, SomeNumber
----------------
1 456
2 123
3 3
4 4589
$query = "UPDATE fubar SET SomeNumber = SomeNumber+1 WHERE ID = 2;
Result
Table fubar
ID, SomeNumber
----------------
1 456
2 124
3 3
4 4589
On Fri, 28 Jun 2002, JJ Harrison wrote:
>-what is the best way to increment a mySQL table cell?
>-
>-is there a increment function or do I need to increment it in php?
>-
>-
>-
>-
>-
>---
>-PHP General Mailing List (http://www.php.net/)
>-To unsubscribe, visit: http://www.php.net/unsub.php
>-
**************************************
John Huggins
VANet
jhuggins@va.net
http://www.va.net/
**************************************