MySQL Forums
Forum List  »  PHP

unwanted multiple rows getting inserted in mysql database table
Posted by: saumitra chopade
Date: August 08, 2005 11:50PM

i have a long running php script at the end of which i am inserting one row of data in one of the database tables. i am using simple insert statement and i have tried verious styles (insert ... set ... values, insert ... delayed...) etc. but occassionally multiple rows of the same data get inserted when i want only one row. this does not happen often but happens in few cases. one thing observed is that the scirpt inserts only one row everytime when it is called via a form submission (like - <form action="script_name.php" method="post"> ) but iserts multiple rows when called directly passing the data in querystring (like - script_name.php?q=xyz&cbid=abc). any idea why this is happening?

Options: ReplyQuote


Subject
Written By
Posted
unwanted multiple rows getting inserted in mysql database table
August 08, 2005 11:50PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.