Jump to content
Fórum Script Brasil
  • 0

Oque eu errei?


JoeGibson

Question

ae galera , eu to aprendo php eu fiz um php aqui soke deu erro, eu gostaria que vocês me ajuda-se.

erro:Parse error: syntax error, unexpected '}' in /home/vhosts/testewebphp.xp3.biz/teste.php on line 11

php:<?php

Session_Start();

$con = mysql_connect("localhost", "root", "senha");

@mysql_select_db("db");

$update = "UPDATE Personagem SET ExpAtu = ExpAtu + 600, HpAtu = HpAtu - 700, MpAtu = MpAtu - 700, Missoes = Missoes + 1, Ouro = Ouro + 1700 WHERE Usuarios = ".$_SESSION['User'];

$up = mysql_query($update);

echo("<a href=game.php>Voltar</a>");

}else if($exp >= $row['ExpNExt']){

echo("<br>Você passou do nivel ".$row['Nivel']." para o nivel ".$nivel." PArabéns");

$nExp = ($row['ExpNExt'] * 0.3) + $row['ExpNExt'];

$nivel = $row['Nivel'] + 1;

$update = "UPDATE Personagem SET Nivel = $nivel, Ataque = Ataque + 1 and Defesa = Defesa + 1 and ExpAtu = $exp and ExpNExt = $nExp and Ouro = Ouro + 1000 WHERE Usuarios = ".$_SESSION['User'];

$up = mysql_query($update);

}

mysql_close($con);

}

?>

Valeu pela atenção ae pessoal ^_^

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652k
×
×
  • Create New...