PHP mysql_query running a query twice (at the same time)
Moderator: General Moderators
PHP mysql_query running a query twice (at the same time)
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?
-
chris12295
- Forum Contributor
- Posts: 113
- Joined: Sun Jun 09, 2002 10:28 pm
- Location: USA
- Contact:
Yes, code could be helpful for those of us who can help you.
Yes, code could be helpful for those of us who can help you.
What results are being returned for your query?
What results are being returned for your query?