anonīms Posted May 15, 2008 Report 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
andrisp Posted May 15, 2008 Report Posted May 15, 2008 Lūdzu, izmantojiet CODE tagu vai paste.php.lv priekš koda.
Recommended Posts