How to add ( for example name) into two tables at the same time?
If you are inserting the same exact data in more than one table your DB design is wrong. Learn about Database Normalization.
Wont happen with PHP regardless.
What are you trying to accomplish?