$user = $_SESSION['nick']; $cons = "SELECT * FROM apuntes WHERE id = '".$user."'"; $resul = mysql_query($cons) or die(mysql_error()); $fila = mysql_fetch_array ($resul);