$sql= "delete from mural where id='id' header("Location: ppp.php");
esse codigo fica numa pagina que deleta registros no bd. e depois devolve pra pagina anterior ( ppp.php ) Aqui diz que tem erro.
Posted 08/08/2005, 16:48
$sql= "delete from mural where id='id' header("Location: ppp.php");
Posted 08/08/2005, 16:54
$sql= "delete from mural where id='id'"; //Aqui falta "; header("Location: ppp.php");
Posted 08/08/2005, 16:58
<? include "info.php"; $sql= "delete from mural where id='id' header("Location: ppp.php"); $cons="mysql_query($sql)"; ?>
Edição feita por: victorpfm, 08/08/2005, 17:13.
Posted 08/08/2005, 17:21
<? include "info.php"; $sql= "delete from mural where id='id'"; $cons=mysql_query($sql); header("Location: ppp.php"); ?>
Posted 08/08/2005, 17:32
Posted 08/08/2005, 18:24
<?php
$sql = "delete from mural where id = '$_GET[id]'";
mysql_query ($sql);
header("Location: ppp.php");
?>
Edição feita por: henriquefr, 08/08/2005, 18:27.
Posted 08/08/2005, 18:28
Posted 08/08/2005, 23:15
Posted 08/08/2005, 23:26
Isto não implicaria na exibição dos registros ...meu seu id eh varchar ? provavelmente nao neh... entao tira as aspas !
Posted 09/08/2005, 08:38
๑۩۞۩๑Let the Carnage Begin!!๑۩۞۩๑
Posted 09/08/2005, 08:44
Warning: Cannot modify header information - headers already sent by (output started at /var/www/home.itnet.com.br/mural/info.php:7) in /var/www/home.itnet.com.br/mural/exclui.php on line 16
Edição feita por: kurt.sud, 09/08/2005, 08:45.
Posted 09/08/2005, 08:54
Posted 09/08/2005, 13:57
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)