Ver Mensaje Individual
  #5 (permalink)  
Antiguo 20/10/2013, 12:05
OsquiB
 
Fecha de Ingreso: junio-2013
Ubicación: Mar del Plata
Mensajes: 122
Antigüedad: 10 años, 9 meses
Puntos: 0
Respuesta: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL resul

haciendolo asi:
Código PHP:
<?php
include_once('mysql.php');



$query "SELECT * FROM post WHERE usuario ='".$_SESSION['usuario_t']."';";
$resultado mysql_query($db_link,$query);
while(
$fila mysql_fetch_array($resultado)){
    echo 
"
    <article>
        <div id='logov2b'></div>
        <time>"
.$fila['ano']."-".$fila['mes']."-".$fila['dia']."</time>
        <h3>"
.$fila['titulo']."</h3>
        <h4>"
.$fila['subtitulo']."</h4>
        <p>"
.$fila['texto']."</p>
    </article>
    "
;
}
mysql_close($db_link);
?>
me tira estos errores:
Cita:
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\xampp\htdocs\includes\posts.php on line 7

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\xampp\htdocs\includes\posts.php on line 8

Warning: mysql_close(): 3 is not a valid MySQL-Link resource in C:\xampp\htdocs\includes\posts.php on line 19