I had two table
restaurant_orders with fields order_id, restaurant_id, tot_amt where order_id is (Autoinc, primary)
order_menus with fields order_id, menu_id, quantity
when the user clicks submit button the record will be stored at restaurant_orders with the field order_id is automatically generated.
Also a record will be stored at order_menus table. Both will happen at same time
What i want is the order_id stored at both the table should be same. How is it possible. plz help