Ver Mensaje Individual
  #5 (permalink)  
Antiguo 22/07/2009, 13:14
condesitadeirun
 
Fecha de Ingreso: noviembre-2007
Ubicación: Irun
Mensajes: 79
Antigüedad: 16 años, 6 meses
Puntos: 0
Respuesta: No toma el valor correcto de la base de datos

Código PHP:
 <?php
    
include("../intranet/conexion.php");
$consulta="select * from revista where id = max(id)";
$hacerConsulta=mysql_query($consulta,$conexion);
$id=mysql_result($hacerConsulta,'id');
$flash=mysql_result($hacerConsulta,'flash');
$pdf=mysql_result($hacerConsulta,'pdf');
echo 
$id."--".$pdf;  
     
?>
Sigue sin funcionaaaaaaaaaaaaaaaaaaaaaaaar