I want to get all unique "ID" from other Table. Sample Table "product_tb" unique column "ID", column "productname". Then i will create other table. Sample table "cart_tb" column name "cart_list". Database name sample "lazada_db".
What i want to happen is that, When i input in column name "cart_list" in Table "cart_tb" with and Array number for "list" that store all unique "ID" for "product_tb".
Question:
- how to query to "cart_list" to insert multiple "number" for "ID" in "product_tb".
- how to query to "cart_list" to get all information from "ID" in "product_tb" which also get the "productname".