Parse error: syntax error, unexpected $end in H:xampphtdocswwwsitesuwafcmembers-areaadminviewroles.php on line 69 there isn’t one, so it means the syntax error is somewhere else, but where????
[code=php]
include “../../includes/db_connect.php”;
session_start();
if (($_SESSION[‘perm’] < “5”))
{
die (‘You are not authorised to access this section’);
}
$fileId = $_GET[‘fileId’];
$dbQuery = “SELECT *”;
$query=”SELECT * FROM roles WHERE role_id= ‘$fileId'”;
$result=mysql_query($query);
while($row = mysql_fetch_array($result))
{
$role_title = $row[“role_title”];
$dbQuery = “SELECT * “;
$dbQuery .= “FROM users WHERE role = ‘$role_title’ “;
$result2 = mysql_query($dbQuery) or die(“Couldn’t get file list”);
$num=mysql_numrows($result2);
if ($num == ‘0’)
{
die (‘There are no members under this role’);
}
// Define variables
$pagetitle=”Member Role”; // default is “NOTE IT”
$internal_banner=””; // y or blank – adds top banner to content
$submenu= // define submenu for this page
<<<SUBMENUBLOCK
<ul>
<li></li>
<li></li>
</ul>
SUBMENUBLOCK;
// include header
include (“../../includes/auto-prepend.php”);
include(“../../includes/above-content.php”);
// content?>
<h1>Member Roles</h1>
<?php
while($row2 = mysql_fetch_array($result2))
{
?>
<table>
<tbody>
<tr>
<th>Members Registered As</th>
<td><?php echo $row[“role_title”]; ?></td>
</tr>
<tr>
<th>Userame</th>
<td><?php echo $row2[“username”]; ?></td>
</tr>
<tr>
<th>Display Name</th>
<td><?php echo $row2[“displayname”]; ?></td>
</tr>
</tbody>
</table>
<?php
}
include(“../../includes/below-content.php”); //include footer ?>