At 8/9/08 04:35 PM, DearonElensar wrote:
At 8/9/08 04:22 PM, ZiggyZack99 wrote:
if ($DFox[Status] = "Yes" | $DFox[Status] = true) {
Also, Status is not always Yes. Status is an array element retreived from the _GET array. If it is false, then *ssslcckkkk* (throat-cutting noise). Srsly, answer the question. Also, a pipe is OR. Don't say it's not, I've used it like that before.
A = means is, if you want to compare 2 variables use == (or even === in certain cases), right now you say that status is Yes.
And an or is || not | so that fails horribly too.
So basically this if fails really hard, please please go fix up your coding standards before doing something else :(
Half right. Thanks for pointing that glaring hole in my code out to me. = is for assignment, == is for comparing. However, if | is not or, how come it works as such on my site? And don't worry, I try to "fix up my coding standards" every day. :)