php - check the existing of a inserted data in 1st table, if inserted data exist in the 1st table then add data into second table otherwise not inserted -


in php using mysqli first want check existing of inserted data in first table , if inserted data exist in first table add inserted data second table otherwise not inserted?

how can this?

for simplifying:

you can consist unique key each value , test key in table1 if exists insert data table 2.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -