Originally posted by philvia
you have to add this somewhere in the script...
}
if ($userlevel>=50)
{
$marks=howmarks();
$sugs=howsugs();
echo "<tr>\n<td class=cell2>\n<b><font face=arial>Marks:</b> <a class=1 href=modme.php>".$marks."</a> | <b>Suggests:</b> <a class=1 href=helpme.php>".$sugs."</a> | <a class=1 href=modresources.php>Moderator Resources</a>\n</td>\n</tr></font>";
}
I am toying with my own coding project, in doing a CMS, at the moment, but I am also doing a forum system for it. One big problem I see right away, philvia, is the extra closing bracket for functions, '}' above the 'if($userlevel ...' line. That alone would be enough to throw the PHP engine off, depending on the rest of your code for the page. If you cut and pasted that block direct from a script other then your own, I would suggest going back, and really studying the other script... Especially where its datasources are, whether it uses a database, and such, as well as what the other functions, such as 'howmarks()', and 'howsugs()', are functioning.