function prepare_output($id = '', $options = array())
{
$this->block_data['longbox'] = '$db->query_first("SELECT * FROM " . TABLE_PREFIX . "formresults WHERE userid = '$bbuserinfo[userid]' ")';
}
should be
Code:
function prepare_output($id = '', $options = array())
{
$this->block_data['longbox'] = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "formresults WHERE userid = '$bbuserinfo[userid]' ");
}
Needed to remove the extra ' ... ' around the $db->query_first() function call. That is supposed to be PHP - not a string. The query itself is already quoted with the double quotes.