【发布时间】:2014-12-13 12:55:51
【问题描述】:
当我尝试插入低于 sn-p 的行时,它会针对 $user_info_do->get_first_name() 抛出严格的标准警告,其中 user_info_do 是具有成员变量 first_name 的类。
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;
}
请帮助我这里可能是什么原因。
【问题讨论】:
标签: php