插入每种类型的项目的数量

时间:2018-02-03 12:00:33

标签: php mysql forms

我很困惑如何让我的表单将数据插入到我创建的包表中。系统应该存储bag_idcustomer id的客户的行李。

This is how the data is supposed to be inserted for the number of bag of each type

行李表中为每个客户生成的行数取决于他们存储的行李的大小。

How the table are related to each other

下图是我希望如何插入数据。

How the data in table look like

但是,我无法弄清楚如何以我想要的方式插入数据。这是我尝试获取每种类型大小的数量:

<label>Bag Size</label></br>
     <input type="text" name="big" id="big" class="form-control" style="width:5%;"/><label>Big</label>
     <input type="text" name="medium" id="medium" class="form-control"style="width:5%;" /><label>Medium</label>
     <input type="text" name="small" id="small" class="form-control"style="width:5%;" /><label>Small</label>

对于输入数据的方式的任何建议表示赞赏。

0 个答案:

没有答案