4 months ago

insert selected id into another table

Posted 4 months ago by EMfinanga

I have already created my customer into database, in my HTML form i managed to select those customer

I want to insert customer_id into another, because this customer_id is carry multiple data/input into customersales table.

my code below is inserted the id but it create another id into customeraddresses table. how can i insert without create another customer_id??

My code i tried

        if(count($request->product_name) > 0)
            foreach($request->product_name as $Customeraddress=>$v){


Please sign in or create an account to participate in this conversation.