当我试图插入下面的代码片段的行时,它会抛出严格的标准警告$ user_info_do-> get_first_name()其中user_info_do是成员变量first_name的类。PHP-bind_param引发INSERT准备语句的警告
ERROR: Strict standards: Only variables should be passed by reference
$query = "INSERT INTO user_info (first_name) VALUES (?);";
if(!($query_stmt = $this->m_db_connection->prepare($query))) {
return;
}
if(!$query_stmt->bind_param("s", $user_info_do->get_first_name()) {
return;
}
请帮我可能是什么原因就在这里。
的可能重复的[mysqli的:严格的标准:只有变量应该通过引用传递(http://stackoverflow.com/questions/23843383/mysqli-strict-standards-only-variables-should-被引用通过) – raina77ow 2014-12-13 13:08:56