0
我想插入用戶的登記時間:嚴格的標準誤差()
function InsertUserToSql()
...
$stmt = $this->dbh->prepare("INSERT INTO users
(username, password, email, regdate) VALUES
(:username,:password, :email, :regdate)");
$stmt->bindParam(':username', $this->Username);
$stmt->bindParam(':password', $this->Password);
$stmt->bindParam(':email', $this->Email);
$stmt->bindParam(':regdate', time()); // this line shows the error
$stmt->execute();
...
錯誤:Strict standards: Only variables should be passed by reference
http://stackoverflow.com/questions/2354609/strict-standards-only-variables-should-be-passed-by-reference –