i got everything working with this mod to, except the last step, can someone please redo the last step for me??
echo ('
<table width = "100%" cellspacing = "1" class = "table">
<tr>
<th colspan = "3">User Comments</th>
</tr>');
$Data = mysql_query("SELECT g.`ID`,g.`SenderID`,g.`RecieverID`,g.`Comment`,u.` userid`,u.`username` FROM `gComments` g LEFT JOIN `users` u "."ON g.`SenderID` = u.`userid` WHERE (`RecieverID` = ".abs(intval($_GET['u'])).") LIMIT 20");
if(!mysql_num_rows($Data))
{
echo ('<tr> <td colspan = "1">This user has no comments.</td> </tr> </table>');
exit($h->endpage());
}else{
while($cData = mysql_fetch_array($Data))
{
echo (' <tr>
<td width = "15%">'.htmlentities($cData['username']).'</td>
<td>'.stripslashes(htmlentities($cData['Comment'], ENT_QUOTES)).'</td>');
if(($_SESSION['userid'] === $cData['RecieverID'])) || ($ir['user_level'] == 2))
{
echo ('
<td width = "10%" align = "center"><a href = "/Comments.php?Delete&ID='.$cData['ID'].'"><span style = "color:#8B0000">Delete</span></a></td>');
}
}
echo ('</tr></table>');
I get Parse error: syntax error, unexpected T_BOOLEAN_OR in /home/murder/public_html/viewuser3.php on line 268 :( :confused: