Bug #12044 Updated: Duplicate mysql entries, in spite of only one query from php
| From: | sander@php.net | Date: | Tue, 23 Oct 2001 18:19:20 +0000 |
| Subject: | Bug #12044 Updated: Duplicate mysql entries, in spite of only one query from php | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-68862@lists.php.net to get a copy of this message | ||
ID: 12044
Updated by: sander
Reported By: cbj@improbus.com
Old Status: Open
Status: Feedback
Bug Type: MySQL related
Operating System: FreeBSD 4.3 / Mandrake 8.0
PHP Version: 4.0.6
New Comment:
Can you post your configure-line?
Previous Comments:
------------------------------------------------------------------------
[2001-07-11 07:20:00] cbj@improbus.com
Hi!
I have a strange problem, that I think has to be a bug:
1. My PHP script does a MySQL query, like this:
$dbname = "testcounter";
$dbhost = "localhost";
$dbuser = "root";
$dbpass = "somepass";
$dbconn = mysql_connect($dbhost, $dbuname, $dbpass);
$q = "INSERT INTO counter (visitorhost) VALUES ('someinfo');";
$qq = mysql_db_query($database, $q);
2. When I perform a manual sql query;
SELECT counter, visitorhost FROM counter;
... I get not only one entry, but TWO for each time the script is loaded.
Here are the original files:
http://beta.robodoc.net/test/index.txt - the
PHP(s) file
http://beta.robodoc.net/test/testcounter.txt
- a mysqldumped TAB file
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=12044&edit=1