|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-10-23 14:19 UTC] sander@php.net
[2001-10-24 00:57 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 09:00:02 2025 UTC |
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