ahora se agrega correctamente pero el error sigue en el codigo para mostrar lo datos
Código PHP:
<?php
$titulopagina=Denuncias;
?>
<?php
include("header.php");
?>
<?php
$connect=mysql_connect("***","****","****");
//Seleccionamos la base
mysql_select_db("*****",$connect);
//hacemos las consultas
$result=mysql_query("SELECT * from denuncia INNER JOIN usuarios ON denuncia.iddenunciante = usuarios.id INNER JOIN noticias ON denuncia.idpost = noticias.id_noticia" ,$connect);
?>
<center>
<b>LISTADO DE DENUNCIAS ACTIVAS.</b>
</center>
<br class="denuncia" />
<hr>
<br class="space" />
<? if($_GET["accion"]=="aceptar"){
mysql_query("DELETE FROM noticias WHERE id_noticia='$_GET[id]'");
mysql_query("DELETE FROM denuncia WHERE id_denuncia='$_GET[did]'");
header('denuncia.php?msg=1');
}
if($_GET["accion"]=="rechazar"){
mysql_query("DELETE FROM denuncia WHERE id_denuncia='$_GET[id]'");
header('denuncia.php?msg=2');
}
if($_GET["msg"]=="1"){
echo'
<center>
<div id="miniabout" class="container400">
<div align="center">
<b>El post a sidoeliminado.</ b>
</div>
</div>
</center>
<br class="space" />';
}
if($_GET["msg"]=="2"){
echo'
<center>
<div id="miniabout" class="container400">
<div align="center">
<b>La denuncia a sido eliminada.</b>
</div>
</div>
</center>
<br class="space" />';
}
?>
<?php
while($row=mysql_fetch_array($result))
{
echo '
<div><img src="http://dii3g0.comoj.com/img/denuncia.png" widht="16" align="top" vspace="2" height="16" hspace="2"><b> <a href="http://dii3g0.comoj.com/verpost.php?id='.$row['id_noticia'].'" target="_blank">'.$row['titulo'].'</a> | <a href="http://dii3g0.comoj.com/panel/modulos/denuncia.php?accion=aceptar&id='.$row['id_noticia'].'&did='.$row['id_denuncia'].'"><img src="http://dii3g0.comoj.com/img/aceptar.png" widht="16" align="top" vspace="2" height="16" hspace="2"></a> | <a href="http://dii3g0.comoj.com/panel/modulos/denuncia.php?accion=rechazar&id='.$row['id_denuncia'].'"><img src="http://dii3g0.comoj.com/img/rechazar.png" widht="16" align="top" vspace="2" height="16" hspace="2"></a></b></div>
<br class="denunciaform" />
<div id="miniabout">
<div><b>Denunciante</b>: <a href="http://dii3g0.comoj.com/usuarios.php?id=registrados&u='.$row['id'].'" target="_blank">'.$row['nick'].'</a> | <b>Causa</b>: '.$row['razon'].' | <b>Comentario</b>: '.$row['mensaje'].'
</div></div>
<br class="denuncia" />
';
}
?>
<br class="space" />
<hr>
<br class="space" />
<?php
include("footer.php");
?>