Parse error: syntax error, unexpected T_IF
Posted: Thu Jul 19, 2007 4:42 pm
Hi im currently working with phpbb and i came across this error Parse error: syntax error, unexpected T_IF
this is the piece of code:
thanks
this is the piece of code:
Code: Select all
if( !($result2 = $db->sql_query($sql)))
message_die(GENERAL_ERROR, 'Could not obtain users PM information', '', __LINE__, __FILE__, $sql);
}
$to_users = $db->sql_fetchrowset($result2);
$n=0;
while ($to_username_array[$n] && !$error)
{
if (strcasecmp($to_users[$n]['username'], str_replace("\'", "'",$to_username_array[$n])))
{
$error = TRUE;
$error_msg .= $lang['No_such_user']." '".str_replace("\'", "'", $to_username_array[$n]);
}
$n++;
}
}
else
{