if(!$sqlStr==$sqlStr1){
       echo $sqlStr;
    }else{
       echo $sqlStr;
       echo "<br>";
       echo $sqlStr1;
       echo "<br>";
       echo "No changes were made!<br>";
   }

This statement produces the same results whether or not the "!" statement is included.
e.g. if(!$sqlStr==$sqlStr1) produces the same results as if($sqlStr==$sqlStr1) Why?

That worked.

Thank you.

This kind of made me angry. Do you understand why xan's fix worked? Do you understand the operator precedence that is taking place between your statements? Are you aware of necessary disambiguation to avoid these issues? Or did you just accept it as "OK, now it works"?

if($sqlStr != $sqlStr1){ echo $sqlStr; }
else{  echo "$sqlStr <br> $sqlStr1 <br> No changes were made! <br>"; }

kis

I am very new to php but I am a very experienced programmer. I will do my research and seek to understand the "why." I am also very new to forums and will probably make more mistakes in etiquette as I gain experience in both.

Thank you both.

Again, thank you. That saves me some research as well as frustration in debugging. Also, I apologize for the mistake in sending a PM. The mistake resulted from inexperience in forum etiquette.

This question has already been answered. Start a new discussion instead.