There are 2 tables they are connected, but it is necessary that when, when adding a new row, it would refer to the first table and, by the row id, pass a specific row to the second table.
something like this but in automatic format.
INSERT INTO trooms(`hotelsname`) SELECT hotelname FROM `thotels` WHERE id = 80 Please help in this issue. Thanks in advance