Jump to content
php.lv forumi

admin panelis..


millers

Recommended Posts

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 by anonīms
Link to comment
Share on other sites

×
×
  • Create New...