Ver Mensaje Individual
  #4 (permalink)  
Antiguo 13/04/2011, 18:53
gmurop
 
Fecha de Ingreso: marzo-2011
Ubicación: Veracruz
Mensajes: 92
Antigüedad: 13 años, 2 meses
Puntos: 3
Respuesta: Warning: mysql_fetch_array()

el $idpost te lo devuelve porque no tiene que ver con el error que te está marcando, yo uso mysql_fetch_object, intentalo asi:

Código PHP:
Ver original
  1. <?php
  2. require_once 'conexion.php';
  3.  
  4.  
  5.  
  6. $idpost = $_GET['id_noticia'];
  7. $post = "SELECT * FROM entradas where id_noticia = '$idpost' ";
  8. $res = mysql_query($post);
  9. while($row= mysql_fetch_object($res)) {
  10.  
  11. echo $row->titulo;
  12.  
  13.  
  14. }
  15.  
  16. ?>