/    Sign up×
Community /Pin to ProfileBookmark

Parse error, I’m going nuts

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 ?>[/code]

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@bathurst_guyApr 16.2006 — You havnt closed a while loop
×

Success!

Help @solidariti spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.15,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...