PHP - Negating Isnull()
I want to negate this line of code...
Code: [Select] if (is_null($activationCode)){ Is this the proper way to do it... Quote if (!is_null($activationCode)){ Thanks, Debbie Similar TutorialsIf I want to negate this... Code: [Select] if (preg_match()) Would this work... Quote if (!preg_match()) Debbie I want to negate the following statement so I can flip my THEN and ELSE... // Check # of Records Returned. if (mysqli_stmt_num_rows($stmt2)==1){ // Member was Found. }else{ // Member Not Found. $errors['currPass'] = 'The E-mail and Password do not match those on file.'; } Would this do the exact same thing... // Check # of Records Returned. if (mysqli_stmt_num_rows($stmt2)!==1){ // Member Not Found. $errors['currPass'] = 'The E-mail and Password do not match those on file.'; }else{ // Member was Found. } Debbie |