【发布时间】:2018-08-06 11:00:50
【问题描述】:
我正在尝试将 Excel 数据上传到 php 中的数据库,我收到警告错误。
<?php
$datepub = date("Y-m-d",strtotime($conn,$Row[6]));
【问题讨论】:
-
如果
$conn是一个数据库连接,我会大笑。请阅读php.net/manual/en/function.strtotime.php -
您的问题与 MySQL 或 MySQLi 无关,因此您的标签不正确。您的代码示例不可重现,我们没有
$conn也没有$Row,我们必须猜测它。请阅读How to ask 指南。 -
我投票结束这个问题是一个错字,因为 OP 根本没有检查手册的正确用法。