I am new to complicated databases. I want to add supplier detail I the database, which has 3 tables with name product, supplier, and purchase invoice.
product have an id(primary key), product_name, and supplier_name(foreign key)
A supplier have a supplier_name and supplier_detail
and purchase invoice have reference_no#(primary key) product_id(foreign key) product_price product_quantity amount_paid and purchase_date
I want to add detail in database using php form but how could I? I am confusing with multiple table and foreign key.
Need suggestion as well as answer with source code? And also I want to know is database I have created is correct or not?
I honestly would recommend you start reading first about relations in databases.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.