Estoy teniendo un problema con la sentencia mysql_fetch_array, no logro entender que error tengo en la linea 89, que es la siguiente:
Cita:
<table background="/Images/Index_04.png" width="582" height="321" border="0"> <? $db = conectar();
$id= mysql_query ("select MAX(id) from posts",$db);
$idmayor= mysql_fetch_array($id);[LINEA 89]
$cont_post=mysql_query("select titulo,contenido,autor,fecha,id from post where id=$idmayor");
$post=mysql_fetch_array ($cont_post);
$cant=0;
?>
$id= mysql_query ("select MAX(id) from posts",$db);
$idmayor= mysql_fetch_array($id);[LINEA 89]
$cont_post=mysql_query("select titulo,contenido,autor,fecha,id from post where id=$idmayor");
$post=mysql_fetch_array ($cont_post);
$cant=0;
?>
Cita:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/a3344304/public_html/Index.php on line 89
y ese es el error que me tira, y no entiendo porque. Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/a3344304/public_html/Index.php on line 89
Sera que el servidor me lo hace a proposito para que me haga premium? jaja
Si me ayudaran se los agradesco mucho, ya que hace mucho tiempo estoy tratando de corregir esto.
Saludos !