I trying to get the following php to work but keep getting parse error's
Parse error: parse error in /home/virtual/site241/fst/var/www/html/phpBB2/req.php on line 36
any help most appreaciated....
<?php
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//
//
// Start output of page
//
$page_title = "www.your-url.com";
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
//$group_id = 68;
$sql = "SELECT user_id
FROM " . USER_GROUP_TABLE . "
WHERE group_id = 68
AND user_id =" . $userdata['user_id'];
if (!($result = $db->sql_query($sql)))
{
message_die(GENERAL_ERROR, 'Error in obtaining userdata', '', LINE, FILE, $sql);
}
$total = 0;
while ($row = $db->sql_fetchrow($result))
{
$total++;
}
?>
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<th class="catHead" height="25">
<b>Title Whatever</b></th>
</tr>
<tr>
<td class="row1" align="center">
<span class="genmed">
<?
if( $userdata['session_logged_in'] && $total)
{
echo 'Hello '.$userdata['username'];
?>
<br />
<center> Here you can put data/html/links/images which will only be seen by those authorized (ie in the group)</center>
<center> Blah blah blah blh blah blah, ..... content....... blah</center>
<center> This html in this php file appears before the closing if bracket ( } )</center>
<?
}
else
{
echo('You are not authorized to view this page.');
}
?>
<br>
</span>
</td>
</tr>
</table>
<br />
<?php
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>