title: Continue or break into PHP loop with javascript
body: <p>I am in a interesting problem. There is a foreach loop, this loop insert data into mysql table form a excel file for every row in excel file. Sometimes duplicate data comes out from excel which is natural. When this duplicate data attempt to insert, I want a popup to ask user that he is interested to insert duplicate data or not. If yes the rest of the code in PHP foreach loop will execute otherwise it will continue with next loop. Please help.</p>