i am tryin to store a customers info in the 'customers_tbl' and that same customers order into the 'orders_tbl'. my primary key in the orders_tbl is called 'orders_id' and i have a 'customers_id' column in the orders_tbl where in i can store the customers id of a particular customer with the particular order. the problem is that if i save the customers order in the orders_tbl how do i get the customers id so that i can store it in the orders_tbl in thje customers_id field. ive read a tutorial that says i should use a foreign key but it wasnt that clear. anybody who knows that answer please help.