From:             [EMAIL PROTECTED]
Operating system: FreeBSD 4.3 / Mandrake 8.0
PHP version:      4.0.6
PHP Bug Type:     MySQL related
Bug description:  Duplicate mysql entries, in spite of only one query from php

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 bug report at: http://bugs.php.net/?id=12044&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to