When I am trying to insert row with below snippet, it throwing the strict standard warning for $user_info_do->get_first_name() where user_info_do is class with member variable 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;
}
Please help me what could be the reason here.