i already tried that.
in fact i tried that several different ways.
in this code $currentprop is a global var.
and also as i mentioned earlier the code works in a completely different php file.
it's just that when i plug it into where it needs to work, it does nothing.
if i make the code so that it simply prints to the page like
echo "this";
it works fine.
as soon as i add in any type of IF or SWITCH statements the code doesn't work at all.
except for the switch statement, then the DEFAULT will show up.. but nothing else.
Also i have many other switch and if statements on this page.. they all work. I'm simply writing a function so i dont clutter the page anymore than i need to.
i also tried copy and pasting the switch code DIRECTLY into the spot i wanted it to go and it still doesn't work.
i tried testing it in places i didnt need it to work thinking it may just be something else i missed.
this function will be run inside another function. I'm aware of scope, which is why i made it global.
but the function it's set to run inside is an object function.
does that have anything to do with why the code won't work? i wouldnt think so because i wrote earlier code that works fine . a global function called in the local object function code.😕