Hello i've got a problem with "else" it says unexpected T_ELSE but i have no idea what could be wrong here
if ($id == "funkcijos")
{
if($vardas != "" && $slaptazodis != "" && $el_pastas != "")
{
$query = "INSERT INTO vartotojai SET vardas = '$vardas', slaptazodis = '$slaptazodis', el_pastas = '$el_pastas', avataras = '$avataras', parasas = '$parasas'";
mysql_query($query);
print "Welcome to the Naruto-Clash. <a href='registracija_ir_login.php'>Log In.</a>";
}
else
{
print "Empty fields.";
}
//[B]Here[/B]
else
{
if ($_POST['Naruto'] == "ON")
{
$query = "INSERT INTO vartotojai SET character = 'Naruto'";
mysql_query($query);
}
}