插入数据取决于输入日期

时间:2018-05-30 23:50:25

标签: javascript php jquery css sql

我有桌子排(1月到12月),但我还没有实现它。

我收到了这段代码:

<input type="date" name="batchnum" required="">

mysqli_query($connections, 
  "INSERT INTO receiving (
     batchnum, description, qtyin, unit, stkonhand,
     status, purpose, supplier, address, num,
     dr, inv, price, totalprice, receivedby, 
     notedby)
   VALUES(
     '$db_batchnum','$db_description','$db_qtyin','$db_unit','$db_stkonhand',
     '$db_status','$db_purpose','$db_supplier','$db_address','$db_num',
     '$db_dr', $db_inv','$db_price','$db_totalprice','$db_receivedby',
     '$db_notedby')");

我希望这个数据在他们选择的月份基于月份插入。谢谢我只是一个新手我真的需要帮助所以我可以按月分类并获得它们。

0 个答案:

没有答案