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