note 58714 deleted from function.mysql-query by tularis
| From: | tularis@php.net | Date: | Sun, 13 Nov 2005 18:45:33 +0000 |
| Subject: | note 58714 deleted from function.mysql-query by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-98516@lists.php.net to get a copy of this message | ||
Note Submitter: Bio2hazard at gmail dot com
Reason: bad code
----
In response to gunniboyh at web dot de:
I believe it writes 1 in the database because the increment gets executed after entering it in the
database.
If you use $++var then it should work fine, as the increment gets performed before the variable is
read by the query.
With best regards, Felix