Thank you. Will try the updated code when i arrive back home.
So to make it clear…
This code will take the data i need from the local database and put it on the remote one ? Or just into the remote one ? Because i do need it to get as normal on the local database also.
The entire process i want to do is to just retrive some of the data from the local database into the remote one. You might call it as a small backup. (using cron eventually)