Jump to content
Fórum Script Brasil
  • 0

(Resolvido) Qual O Problema Com Essa Conexao C/ Mysql?


Dracom
 Share

Question

Olá

tenho esse codigo:

<?php
$user = $_POST['usuario']
$conec = mysql_connect ("localhost","dracom","") or die ("Falha na conexão do banco de dados...Erro-1");
$declar="DELETE * FROM usuario WHERE usuario = '$user')";
if(mysql_db_query ("imortais", $declar, $conec))
{
echo "Pronto";            
 }
mysql_close($conec);
?>

E dá esse erro:

Parse error: parse error, unexpected T_VARIABLE in C:\wamp\www\WebGame\admdelete.php on line 3

Ps: Tenho certeza que os dados dados como usuario e senha estao corretos

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

Não mesmo? deixa eu passar a solução mastigada (pra esse problema, não olhei o resto do código...)

$user = $_POST['usuario'];//<- ; No final de toda instrução ok?

$conec = mysql_connect ("localhost","dracom","") or die ("Falha na conexão do banco de dados...Erro-1");

Link to comment
Share on other sites

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.

 Share

  • Forum Statistics

    • Total Topics
      149.8k
    • Total Posts
      646.7k
×
×
  • Create New...