Please somebody help me. In below code the query will execute 3 times , means query execution will depend on number of elements in array. Please guide me how to run this query with inserting all data at once
 $products = array("shirt" , "paint" , "socks");
    $price = array("200" , "600" , "50");
    $quantity = array("3" , "2" , "2");
        $num = 0; while($num <= count($products))
        {
            $mysqli->query("insert into new_order set 
                            product = '".$products[$num]."' ,
                            price = '".$price[$num]."' , 
                            quantity = '".$quantity[$num]."'
                          ");
                          $num++;
        }
 
     
    