dimanche 5 juillet 2015

PHP if statement with mutliple OR

Whats wrong with this syntax, even my value is "successful" or "Pending" it still echo the message out. It works fine with "==" sign. But not "!=" or "!=="

if(($single_record[CellA::StatusA]!=='successful') || ($single_record[CellA::StatusA]!=='Pending')){                              
                                $problem_column = (CellA::StatusA)+1;
                                $problem_row = $c+1;
                                echo "Unsucessful";                                   
                                $validated=false;

                            }

Aucun commentaire:

Enregistrer un commentaire