On Tue, 24 Sep 2002, The New Source wrote:

>-I have a field on a MySql database that is started with a 0, and I want
>-to add 1 to this field every time a button is pressed on a form. So it
>-should add one every time, like if there is 5 and you press it one time
>-it would have 6.

UPDATE table SET field = field + 1 WHERE whatever = whatever;


John Huggins



PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to