This is how I am writing my if statement:
if (($olddata !="y") || ($olddata !="n")) { . . . . }
However, I am getting a parse error. The only values that $olddata can accept is "y" or "n". What is wrong with the above code or should I be writing it differently.
Thanks
I think you really need to use AND instead of OR if you're checking for not equal.
if($olddata != "y" && $olddata != "n") { // error }
OR would work if you were checking for equality
if($olddata == "y" || $olddata =="n") { // then it's ok }
chances are your parse error is above that line and its reporting it because you left out a semicolon above. check the previous lines because nothing looks wrong with it.