Val Posted May 13, 2008 Report Share Posted May 13, 2008 kautvai if() { } elseif() { } else { } Link to comment Share on other sites More sharing options...
anonīms Posted May 15, 2008 Report Share Posted May 15, 2008 (edited) if($_SESSION['ielagojies']) { $ie = mysql_query("SELECT level FROM users WHERE username = '$_SESSION['username']'"); $ie = mysql_fetch_array($ie); echo "Tu esi ielogojies!"; if($ie[0] == '10') { echo "Tu esi admins"; } else { echo "Tev nekas nerādas"; } } else { echo "ielogojies"; } Edited May 15, 2008 by anonīms Link to comment Share on other sites More sharing options...
andrisp Posted May 15, 2008 Report Share Posted May 15, 2008 Lūdzu, izmantojiet CODE tagu vai paste.php.lv priekš koda. Link to comment Share on other sites More sharing options...
Recommended Posts