我有关于 PHP 的课程,当调用它时,函数__construct($_POST)
必须是进程。
__construct()
函数定义为:
// Constructor Function
function __construct($_POST){
$this->customer = trim($_POST['customer']);
$this->CreateDate = date('Y/m/d');
}
当我在类上调用任何函数时,它会被处理并插入到数据库中,但是会出现这个消息:-
Missing argument 1 for Draft::__construct(), called in ....
我的代码有什么问题
谢谢