I am looking for some help,
I have two tables, one being users and another being land. users can have many pieces of land.
my users table holds - ID | USERNAME | PASS The Land table holds - ID | Land_ID |Land_Name
I am trying to create an SQL statement that will allow me to create a new 'land' record but it will populate the 'Land_ID' with the 'ID' from the users table. Therefore:
The user with ID 1 has land name green which has the Land_ID 1 meaning they own that land?
I hope that makes sense.
Thank you in advance for any help.