![]() |
problem with condition
condition in the phpinclude template:
PHP Code:
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. |
PHP Code:
|
that worked *cream pie* ;)
|
that is to say, it worked on my test forums but not for the person i'm doing this for. his forums give this error at the top of every page now:
Parse error: parse error, unexpected T_VARIABLE in /home/virtual/site3/fst/var/www/html/global.php(281) : eval()'d code on line 1 the error refers to the first line of the phpinclude template (where the if statement is). and so my questions are... questions: 1. what does this error mean? i'm not sure what a t_variable is. 2. how do i fix it? |
thx for the help tonight firefly :)
|
<a href="http://www.php.net/manual/en/tokens.php" target="_blank">http://www.php.net/manual/en/tokens.php</a>
|
All times are GMT. The time now is 01:10 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|