0

I'm really new to php and I need to create a script that will copy data from the table from one database server to another database server. But I don't know how to do that. Also, I don't need to copy all the fields in that table there are some specific fields only that I want to copy.

For Example :

Database 1 server -  SampleTable 1 fields

id | control_number |   date    | received | finished |
2  |    222222      |   2019    |    2018  |   2019   |

Database 2 server - SampleTable 2 fields


id | control_number | received  | finished |
2  |    222222      |   2018    |    2019  |

I found this question, but It didn't work for me.

Andronicus
  • 25,419
  • 17
  • 47
  • 88
NewbieKid
  • 87
  • 7
  • show us what you have tried – Amanjot Kaur Jan 07 '20 at 06:37
  • @AmanjotKaur check this. I've posted new question. It includes codes that I have tried.. https://stackoverflow.com/questions/59622804/copying-data-from-two-different-database-server-using-pdo-php – NewbieKid Jan 07 '20 at 06:45

0 Answers0