Hi there,
I have a series of PHP pages that have pretty much the same functionality and allow me to manage information in a database (each page allows me to maintain a specific table). They all allow to Edit, Create and Delete records and do things in pretty much the same manner.
BTW: I am using SQL Server as a BE database
I am having a problem with one of them, as when the user presses the DELETE button the page loads again going to the appropiate section (via POST argument). The relevant procedure is called to delete the data from the table and then the page is rendered again.
Now on the rendering, one of the first actions is a call to another Stored Procedure and, if the user has just deleted an element, an error is shown stating:
"Connection is busy with results from another hstmt"
The only difference between this page and the others is that this STORED PROCEDURE deletes data from a table that has a FOREIGN KEY set to DELETE ON CASCADE. Could it be that the DELETE ON CASCADE is somehow holding up the resource and it is not allowing somehow PHP to establish another SQL connection?
Any help would be much appreciated. Thanks,
Javier