create delete sql query

Job ID: 31304516

Budget: $10 – $30 USD

Need a script that connect to database 1 and collect all id´s then connect to database 2 and delete from database 2 where same id exists as in database 1
all should be executed by a button on a php page

the databases has same columns and id is unique so can only exist one time in the column
Related categories: PHP SQL MySQL HTML Relational Databases