Magento从php表单中收集出生日期并插入DB

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Magento从php表单中收集出生日期并插入DB相关的知识,希望对你有一定的参考价值。

Insert that into the database as a string. The example would give you the format 2011-01-28
  1. $dob = date('Y-m-d',strtotime($_POST['dob']));

以上是关于Magento从php表单中收集出生日期并插入DB的主要内容,如果未能解决你的问题,请参考以下文章

Magento:删除产品特价“从”和“到”日期要求

在 magento 如何在 IpnController.php 页面中收集订单信息

添加新行时自动插入日期戳

PHP如何从出生日期开始计算年龄

从表单收集数据,在对象中堆叠并使用 Vue 使用 AJAX 发送

我想将表单中的数据插入到表中,然后从另一个表中选择另一个数据并使用 PHP 插入到第三个表中