Ver Mensaje Individual
  #13 (permalink)  
Antiguo 08/08/2008, 15:12
Avatar de Carlojas
Carlojas
 
Fecha de Ingreso: junio-2007
Ubicación: Shikasta
Mensajes: 1.272
Antigüedad: 17 años, 9 meses
Puntos: 49
Respuesta: Problemazo con el fetch_array

Prueba así tu código:

Código PHP:
$db conectar(); 
$id mysql_query("select MAX(id) as id from post",$db)or die("error en query:".mysql_error()); 
$idmayor mysql_result($id0);
$cont_post mysql_query("select titulo,contenido,autor,fecha,id from post where id='$idmayor'",$db) or die("error en query:".mysql_error()); 
$post mysql_fetch_array ($cont_post); 
var_dump$post ); 
$cant 0

Saludos.