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

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

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

javascript - Restarting Supervisor and effect on FlaskSocketIO -