Unexpected T_IF

From: Date: Mon, 25 Apr 2005 23:29:49 +0000
Subject: Unexpected T_IF
Groups: php.general 
Request: Send a blank email to php-general+get-213839@lists.php.net to get a copy of this message
I'm experiencing an unexpected T_IF error, and after digging through miles of code, came up empty. The relevant code, along with the if statement Parse error: parse error, unexpected T_IF in /var/www/html/phpBB2/posting.php on line 562 if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, 'Could not obtain group data for this survey', '', __LINE__, __FILE__, $sql); } while ( $row = $db->sql_fetchrow($result) ) { $group_id = $row['group_id']; $group_name = $row['group_name']; $group_checked = ( in_array($group_id, $survey_group_ids) ) ? 'checked="checked"' : ''; $template->assign_block_vars('listrow', array( 'S_MARK_ID' => $group_id; 'S_DESIGNATED_GROUP' => $group_checked; 'U_GROUP_NAME' => $group_name); ); } any ideas?

« previous php.general (#213839) next »