I have a data coming from array like following :
(AuthName1,AuthAddr1,AuthEmail1~AuthName2,AuthAddr 2,AuthEmail2~)
so i split it using the following code:

It give the following result :
AuthName1,AuthAddr1,AuthEmail1AuthName2,AuthAddr2, AuthEmail2
then i update the above code as following to split each part :

what i want is insert each item in (arr2) into a database table using sql, that table is (ID, AuthorName, AuthorAddress, AuthorEmail)


Check Solution