Re: Adding to a MySql Database
| From: | Justin French | Date: | Wed, 25 Sep 2002 01:00:55 +0000 |
| Subject: | Re: Adding to a MySql Database | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-117484@lists.php.net to get a copy of this message | ||
on 25/09/02 3:05 AM, The New Source (thenewsource@ieg.com.br) 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 tablename SET value=value+1 WHERE .....
Or something like that!! Check the MySQL manual.
Justin French