PHP Array inserting too many records in the database
问题 If i enter only 1 record. It saves only 1 record in the database which is fine. But if i put two records of the same fields. It saves multiple records in the database which should only be two. What did i do wrong? <td>1.<input name='Description[]' type='text' required></td> <td><input type='text' name='Unit[]' placeholder='eg. reams,pcs,box' required></td> <td><input type='number' name='Quantity[]' min='1' required></td> <td><input type='number' name='Cost[]' min='1' required></td> </tr> I