Ver Mensaje Individual
  #44 (permalink)  
Antiguo 12/09/2011, 13:10
Avatar de Dragon_Mandarin
Dragon_Mandarin
 
Fecha de Ingreso: marzo-2005
Ubicación: Santiago de Chile
Mensajes: 231
Antigüedad: 19 años, 2 meses
Puntos: 14
Respuesta: [APORTE] Sistema de noticias y comentarios

Corregí un bug en el documento edit.php, que está dentro del admin

Código PHP:
Ver original
  1. <?php
  2. include ('../includes/connect.php');
  3. $id=$_POST['id'];
  4. $titulo=$_POST['titulo'];
  5. $autor=$_POST['autor'];
  6. $categoria=$_POST['categoria'];
  7. $noticia=$_POST['noticia'];
  8. //$foto = $_POST['foto'];
  9. $sql = "UPDATE noticias SET id_noticia='$id_noticia', titulo='$titulo', autor='$autor', noticia='$noticia', categoria='$categoria'";
  10. $result = mysql_query($sql, $connect) or die("Error en consulta $sql:".mysql_error() );
  11. header("location: panel.php");
  12. ?>