adamkearsley
02-11-2005, 04:17 PM
Hi there,
right... completely non-flash related!
but some of you know php and phpbb!
im getting a parse error due to a mod i installed for phpbb!
Parse error: parse error, unexpected ';' in /home/******/*****/*****/includes/page_header.php on line 322
the mod is...
// START Birthday Mail Extension
$sql = "SELECT * FROM " . USERS_TABLE . " WHERE user_id = " .
$userdata['user_id'];
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, $lang['bd_sqlerror']);
}
while( $row = $db->sql_fetchrow($result) )
{
$bd_mail = intval($row['user_email']);
}
$sql = "SELECT * FROM " . USERS_TABLE . " WHERE user_id = $user_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, $lang['bd_sqlerror']);
}
while ($row = $db->sql_fetchrow($result))
$emailer->from($board_config['board_email']);
$emailer->replyto($board_config['board_email']);
$emailer->email_address(trim($row['user_email']));
$emailer->use_template("birthday", $row['user_lang']);
$emailer->set_subject($lang['bd_subject']);
$emailer->assign_vars(array(
'USERNAME' => preg_replace($unhtml_specialchars_match,
$unhtml_specialchars_replace, substr(str_replace("\'", "'", $row['username']),
0, 25)),
'EMAIL_SIG' => str_replace('<br />', "\n", "-- \n" .
$board_config['board_email_sig']),
'BOARDNAME' => str_replace('<br />', "\n", "-- \n" .
$board_config['sitename'])
);
$emailer->send();
$emailer->reset();
}
// END Birthday Mail Extension
line 322 is ); (4 lines up from bottom of mod)
can u see the error???? what i need to change???
Cheers for any help!!!
Adam
right... completely non-flash related!
but some of you know php and phpbb!
im getting a parse error due to a mod i installed for phpbb!
Parse error: parse error, unexpected ';' in /home/******/*****/*****/includes/page_header.php on line 322
the mod is...
// START Birthday Mail Extension
$sql = "SELECT * FROM " . USERS_TABLE . " WHERE user_id = " .
$userdata['user_id'];
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, $lang['bd_sqlerror']);
}
while( $row = $db->sql_fetchrow($result) )
{
$bd_mail = intval($row['user_email']);
}
$sql = "SELECT * FROM " . USERS_TABLE . " WHERE user_id = $user_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, $lang['bd_sqlerror']);
}
while ($row = $db->sql_fetchrow($result))
$emailer->from($board_config['board_email']);
$emailer->replyto($board_config['board_email']);
$emailer->email_address(trim($row['user_email']));
$emailer->use_template("birthday", $row['user_lang']);
$emailer->set_subject($lang['bd_subject']);
$emailer->assign_vars(array(
'USERNAME' => preg_replace($unhtml_specialchars_match,
$unhtml_specialchars_replace, substr(str_replace("\'", "'", $row['username']),
0, 25)),
'EMAIL_SIG' => str_replace('<br />', "\n", "-- \n" .
$board_config['board_email_sig']),
'BOARDNAME' => str_replace('<br />', "\n", "-- \n" .
$board_config['sitename'])
);
$emailer->send();
$emailer->reset();
}
// END Birthday Mail Extension
line 322 is ); (4 lines up from bottom of mod)
can u see the error???? what i need to change???
Cheers for any help!!!
Adam