Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Arquivos:
querys.php:
function Apaga_Noticia()
{
$this->AbreConexao();
//$SQL = ;
$teste = mysql_query("delete FROM membros") or die mysql_error($teste);
//echo 'oi';
$this->FechaConexao();
}
index.php:
<?php
include("querys.php");
$noticias = new noticias;
?>
<html>
<head>
<title>Sistema De Registro de Noticias</title>
</head>
<body>
<center>
<h2>Noticia</h2>
<?php
//if($_POST["confirma"]!="ok")
//{
//echo '<form method="post" >
//Titulo <input type="text" name="Titulo"><br>
//Conteudo <input type="text" name="Conteudo"><br>
//Autor<input type="text" name="Autor"><br>
//<input type="submit" value="registrar Tudo"/><br>
//<input type="Reset" value="Apagar Tudo"/>
//<input type="hidden" name= "confirma" value="ok">
//</form>';
//}else{
$noticias->Apaga_Noticia();
//unset($POST);
//header("Location: http://mpua.tk/teste");
//}
?>
<div id="myDiv"></div>
</body>
</html>
Problema:
Bem Não to Entendendo porque quando eu tento executar o método de excluir os dados não funcionam.
Sendo que o SELECT/INSERT (De Outros Métodos) funcionam.
ERRO:
Parse error: syntax error, unexpected T_STRING in /home/a7789486/public_html/teste/querys.php on line 102
HELP ME !!
Carregando comentários...