Bug #12044 Updated: Duplicate mysql entries, in spite of only one query from php

From: Date: Wed, 24 Oct 2001 04:57:01 +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-68897@lists.php.net to get a copy of this message
ID: 12044
Updated by: sniper
Reported By: cbj@improbus.com
Old Status: Feedback
Status: Bogus
Bug Type: MySQL related
Operating System: FreeBSD 4.3 / Mandrake 8.0
PHP Version: 4.0.6
New Comment:

Not a bug, see this bug report for more information:

http://bugs.php.net/bug.php?id=10599


Previous Comments:
------------------------------------------------------------------------

[2001-10-23 14:19:20] sander@php.net

Can you post your configure-line?

------------------------------------------------------------------------

[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



Thread (3 messages)

« previous php.dev (#68897) next »