I have two tables related to the principal and the detail. I have to register for example:
Tabla 1
Idpersona persona
01 Juan
Tabla 2
ID idpersona pedido
1 01 zcahs
2 01 bitcoin
3 01 Eterium
To insert data into the second table to the inputs I define as fixes
<input name="pedido []" value="zcahs, bitcoin, eterium"/>
In which the value comes separated by commas (,), how to decipher that values so that they are inserted each one in a row in the database.
Thanks for the help.