Jakeman
06-26-2002, 06:20 AM
condition in the phpinclude template:
if ($forumid == 3 || 26) {
$picnumber = $forumid;
} else {
$picnumber = '';
}
goal:
the goal here is to have $picnumber parse into the forumid of the current forum when loading forumdisplay.php . example, you click on the forum with forumid 3 and $picnumber will parse into 3. then you click on the forum with forumid 6 and it parses into nothing.
problem:
the condition is evaluating to true for all forums. i load forumdisplay.php and, regardless of what forumid is in the url, the condition evaluates to true and $picnumber always parses into the forumid of the current forum. i can't figure out why this is always parsing to true. any help is appreciated.
if ($forumid == 3 || 26) {
$picnumber = $forumid;
} else {
$picnumber = '';
}
goal:
the goal here is to have $picnumber parse into the forumid of the current forum when loading forumdisplay.php . example, you click on the forum with forumid 3 and $picnumber will parse into 3. then you click on the forum with forumid 6 and it parses into nothing.
problem:
the condition is evaluating to true for all forums. i load forumdisplay.php and, regardless of what forumid is in the url, the condition evaluates to true and $picnumber always parses into the forumid of the current forum. i can't figure out why this is always parsing to true. any help is appreciated.