PHP mysql_query running a query twice (at the same time)
Posted: Thu Jun 13, 2002 11:00 am
I am working on a large web application using PHP and MySQL. On a page that inserts a new entry into the database, I run mysql_query() once with my insert string. Two entries show up in the database, each with a new ID (indicating that for some reason, mysql_query actually ran the query twice, and the AUTO_INCREMENT field was increased for each one). If I print out the INSERT string, and type that directly into the mysql command line client, it of course only inserts one entry. Any suggestions?