anonīms Posted November 17, 2008 Report Share Posted November 17, 2008 (edited) if($_GET['a'] != 'turniri' OR $_GET['a'] != 'reg') { zinat paši } Kapēc tāpat, kas ir tajā zinat paši rādas, ja ieiet ?a=turniri jeb ?a=reg Ja samainu tikai uz if($_GET['a'] != 'turniri') { zinat paši } un ejot ?a=turniri tad zinat paši pazūd... Kur problēma? vaitad nevar izmantot OR? Tā arī nav if($_GET['a'] != 'turniri' || $_GET['a'] != 'reg') Edited November 17, 2008 by anonīms Link to comment Share on other sites More sharing options...
andrisp Posted November 17, 2008 Report Share Posted November 17, 2008 Viss jau ir pareizi. Tā jābūt. Uzraksti normālā parastā valodā, ko gribi panākt. PS "..ieiet ?a=turniri jeb ?a=reg" - "vai" nevis "jeb"!!! Link to comment Share on other sites More sharing options...
indoom Posted November 17, 2008 Report Share Posted November 17, 2008 liec && pa vidu if($_GET['a'] != 'turniri' && $_GET['a'] != 'reg') Link to comment Share on other sites More sharing options...
Recommended Posts