this works
if ($flag != 'u') { stuff.. }
this works.
if ($id != 0) { stuff.. }
but these don't seem work me....
if ( ($flag != 'u') || ($id != 0) ) { stuff.. } if ( ($flag != 'u') or ($id != 0) ) { stuff.. } if ($flag != 'u') || ($id != 0) { stuff.. } if ($flag != 'u') or ($id != 0) { stuff.. } if ( $flag != 'u' || $id != 0 ) { stuff.. } if ( $flag != 'u' or $id != 0 ) { stuff.. }
any idea why? , format should use in php?
your code works. tried this
<?php $flag= u; $id= 0; if ( ($flag != 'u') || ($id != 0) ) { echo "hi"; } ?>
the code simple says if $flag not equal u
or if $id not equals 0
echo hi
in page.
is logic?
the problem might in logic hope!
Comments
Post a Comment