RE: [PHP] Re: Why isn't this working?
| From: | PHP List | Date: | Fri, 28 Jun 2002 14:45:27 +0000 |
| Subject: | RE: [PHP] Re: Why isn't this working? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-104339@lists.php.net to get a copy of this message | ||
Have you tried the more conventional
$query = "UPDATE poll_options SET votes = votes + 1";
mysql_query($query);
?
Sincerely,
Pavel Kharitonov
Project Manager
Intechnic Corporation
http://www.intechnic.com
Phone: (847) 816-1231
-----Original Message-----
From: JJ Harrison [mailto:webmaster@tececo.com]
Sent: Friday, June 28, 2002 9:36 AM
To: php-general@lists.php.net
Subject: [PHP] Re: Why isn't this working?
It only seems to work if the column values are 1 or more.
--
JJ Harrison
webmaster@tececo.com
www.tececo.com
"Jj Harrison" <webmaster@tececo.com> wrote in message
news:20020628125957.61236.qmail@pb1.pair.com...
> Here is my code:
>
> $query = "UPDATE poll_options SET votes + 1";
> mysql_query($query);
>
> All where conditions have were removed to try and fix the problem
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php