note 14407 added to function.mysql-query.php
| From: | oliver dot ahlberg at NO-SPAM dot chek dot com | Date: | Mon, 30 Jul 2001 12:42:26 +0000 |
| Subject: | note 14407 added to function.mysql-query.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-16054@lists.php.net to get a copy of this message | ||
I'm experiencing an very annoying error: When I want to increment a field in my MySQL database
by one, i.e. increase the field Visitors with one for each page reload, PHP not only adds one
visitor, but two.
How come?
I've tried the script separately, and it works fine, but when run on the full page it just acts
weird.
I'm using quite a few include() commands and suspect that this has something to do with it.
Also worth mentioning is that I'm certain that the MySQL query isn't run twice!
Is this bug (?) because of PHP or MySQL?
Unfortunately I can't include the script because it's quite long.
http://www.php.net/manual/en/function.mysql-query.php