briedis Posted August 14, 2008 Report Share Posted August 14, 2008 (edited) Kā varētu būt izskaidrojams tas, ka pirmais vardump izmet NULL, otrais BOOL(true) ??? $fuck_it = 0; if($_COOKIE['logged'] == "mhm"){ $logged_in == true; var_dump($logged_in); // izmet NULL $fuck_it = 1; } if($fuck_it == 1) $logged_in = true; var_dump($logged_in); //izmet bool(true) Edited August 14, 2008 by briedis Link to comment Share on other sites More sharing options...
indoom Posted August 14, 2008 Report Share Posted August 14, 2008 tāpēc ka $logged_in == true; trešajā rindā Link to comment Share on other sites More sharing options...
Aleksejs Posted August 14, 2008 Report Share Posted August 14, 2008 Tāpēc, ka pirmajā vietā, tu neuzstādi $logged_in vērtyību, bet gan salīdzini: $logged_in == true; bet vajag: $logged_in = true; Link to comment Share on other sites More sharing options...
briedis Posted August 14, 2008 Author Report Share Posted August 14, 2008 (edited) Psc. Labi, paldies... Šitik debīla kļūda vēl nebija gadījusies... Saprastu ja iffā salīdzināšanas vietā ieliktu vienu "=".. Edited August 14, 2008 by briedis Link to comment Share on other sites More sharing options...
Recommended Posts