rafanetx
2007-11-07 11:43:10 UTC
I have developed a PHP-based application that displays a list of transactions from one MS Access database on a page from which users can click on check boxes to approve them. The checked values are stored in an array.
When they click on the Submit button the PHP code takes array through a FOR loop. In that FOR loop a SELECT query is called to retrieve the information for each of the selected transactions. The retrieved information is used to build an INSERT query into another MS Access database.
This SOMETIMES creates duplicates in the second MS Access database. There are at maximum four people sending INSERT queries to this second database.
I thought that the FOR loop was causing the problem but even hard coding a single INSERT query creates duplicates.
Any ideas why this happens?
Thank you.