Posts: 1,832
Location: Somewhere else entirely
|
Sounds like something has gone wrong earlier on in the file. Look at your code in the above post, I've put tags round it so we see the syntax highlighting. About halfway down, it changes to be all blue in colour, round about the line
PHP Code:
if ( $group == 1 ) echo "<br/><a href=\"./options.php?ses=$ses&act=adinsert\">create a user</a>";`
There is a backtick (`) on the end of that line that might be screwing things up.
Also - your if blocks are way off. You don't need an if check for every single line, for example you are checking $group==1 many times over. You just check it once and put the lines of code in a block using { and }:
PHP Code:
if($group == 1) {
echo "link1";
echo "link2";
echo "link3";
}
Some of your other if blocks don't have {'s when they really should.
PHP Code:
if($a==1)
echo "1"; //executed only if a is 1
echo "2"; // ALWAYS executed
if($a==1) {
echo "1"; //Both only executed when a is 1
echo "2";
}
One last thing, you seem to have an exit() call in your script, so the second half of your script will NEVER happen. Perhaps this is because you need to close an if block around it with a }. Ifs in PHP don't work with indenting like in Python.
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';
Please login or register to view this content. Registration is FREE (aka MSN handwriting for forums)
Last edited by 0beron; 04-07-2005 at 06:35 PM..
|