Ok, now I see what you mean. It's almost like Turbo Pascal when you assign the variables then. And if I wanted to assign a global variable to be able to use anywhere on the site, is global.php where I would put it or could it be done in functions.php?
(I love this stuff!

)
Quote:
Originally posted by FireFly
You don't want to use = in conditionals, at least not for now. If you do this:
Code:
if ($foo = 'bar') {
It will be true, since $foo is assigned 'bar', and since the assigment was successful the whole expression returns true (yes, assigments return true/false).
|
Also, just to make sure I got it. these next 2 lines of code will actually return the same results, right?
PHP Code:
if ($post[userid]!=$bbuserinfo[userid] and $bbuserinfo[canreportposts]==1) {
PHP Code:
if ($post[userid]!=$bbuserinfo[userid] and $bbuserinfo[canreportposts]!=0) {