Ver Mensaje Individual
  #3 (permalink)  
Antiguo 24/04/2012, 05:37
franjgg
 
Fecha de Ingreso: marzo-2007
Mensajes: 751
Antigüedad: 19 años, 6 meses
Puntos: 4
Respuesta: Numeros extraños en consulta con varible de sesion

Hola amigo repara2,


Aqui esta el codigo:


Código PHP:
$f=$_SESSION["f"]; 
$ff=$_SESSION['Categoria']; 

if(
$_POST)   
{ 
    
set_time_limit(0);     
    
header("Edge-control: no-store"); 
    
sleep(1);  
    
session_start(); 
    if (!
$conexion)
      {
      die(
'Could not connect: ' . mysql_error());
      }

    
mysql_select_db("esfera10_rss", $conexion);
            
        

    
$notificaciones = "select * from '".$ff."' where id_noticia > '".$f."' order by id_noticia desc";                 
    
$notificaciones = mysql_query($notificaciones, $conexion);  

            while(
$rs=mysql_fetch_array($notificaciones))  
              {  
                echo 
$rs['titulo'].'<br>';
              } 
    
mysql_close($conexion);    
    exit(); 
} 

Saludos