How can I insert multiple fixes in mysql with php.
html
<form action="">
<input type="text" name="producto[]">
<input type="text" name="precio[]">
<input type="text" name="cantidad[]">
<input type="submit">
</form>
php
$arrayproducto=$_POST['producto'];
$arraycantidad=$_POST['cantidad'];
$arrayprecio=$_POST['precio'];
$combinar=array_combine($arrayproducto, $arraycantidad);
foreach($combinar as $producto=>$cantidad)
{
// Consulta para insertar los arreglos
}
Usually I inserted two arrays that way, but now that I have another array ( $ arrayprice ), how can I insert the third one?