Quote:
Originally Posted by bobster65
PHP Code:
function prepare_output($id = '', $options = array())
global $db;
{
$this->block_data['longbox'] = $db("SELECT * FROM " . TABLE_PREFIX . "formresults WHERE userid = '$bbuserinfo[userid]' , AND title = 'Resume' ");
}
you have the global outside of the {}
should be like this..
PHP Code:
function prepare_output($id = '', $options = array())
{
global $db;
$this->block_data['longbox'] = $db("SELECT * FROM " . TABLE_PREFIX . "formresults WHERE userid = '$bbuserinfo[userid]' , AND title = 'Resume' ");
}
|
Yeah, I've been googling and you're right I needed to move it inside the curly bracket, but now I'm getting yet
ANOTHER error. (I can't believe it either - it's like the coding gods hate me

).
Parse error: syntax error, unexpected T_IF, expecting T_FUNCTION in /home/righscom/public_html/addons/projectfanboy/vb/member.php(463) : eval()'d code on line 252