Why would this php not work but would work this way? -


if ($sess_uid == $wallid) { // } else { run action } 

works but

if (!$sess_uid == $wallid) { run action } 

wont work. why this? want code fire off if both ids don't match.

this:

if (!$sess_uid == $wallid) {     run action } 

is equivalent this:

if ( (!$sess_uid) == ($wallid)) {     run action } 

while want:

if (!($sess_uid == $wallid)) {     run action } 

Comments

Popular posts from this blog

c++ - Compiling static TagLib 1.6.3 libraries for Windows -

php - How can I merge Nodes & Webform Submissions into instances of one general Content Type in Drupal 6? -

xslt - Umbraco and EXSLT sets do not work -