how do I know if the data is inserted into mysql database.
I am putting the code for inserting data into mysql in 2nd window, not in my main window.
What I need is, the 2nd window close, while uploading process is finish.
The data that inserted is very huge. about 100 datas/rows.
I wouldn’t call 100 rows “huge”. MySQL might well swallow this in way less than a second, especially if you are following this advice. In general, when you issue your statement to your database, check the error property of your database object. If it is false you can safely assume that the operation succeeded.