Log in

View Full Version : is this correct? (conditional)


lukemax
05-24-2007, 10:21 PM
I'm trying to display a php table when a speciffic forum is displayed, is there something wrong with my if statement?
(at the bottom of the template in the attachment)
(I'm trying to use the hook ($providers) only when forumdisplay = 6)
Thanks...

kall
05-24-2007, 11:24 PM
Personally, I would just use $forum[forumid]... and would enclose the 6 in '', like this: '6'.

lukemax
05-25-2007, 06:17 PM
ok, thank you.
Also, when I go strait to the php page inside the hook (from the browser) it works, but if I enable the hook and go to that forum, it throws me an error?
What does that tell you?
Thanks...