Miren tengo un script donde el usuario al dar clic en un link debe ver las notas pendientes o sea mensajes que un script principal ha enviado a una bandeja de salida, el problema que tengo es que ya revise todo y deberia mostrarme todos esos mensajes en pantalla pero no lo hace por favor ayudenme a ver lo que no he podido ver. A continuacion el script.
<?php session_start();
include("config.inc.php");
$id = $_SESSION['usr'];
if(!$id){
echo "No esta autorizado para ver esta pagina...";
echo "<meta http-equiv='refresh' content='2;url=form_registro.php'>";
}else{
$user = $_POST['usr'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Tareas Pendientes</title>
<link href="styles_agenda.css" rel="stylesheet" type="text/css" />
<script language="javaScript">
function volver(){
document.location.href = "<?=$pagina;?>";
}
</script>
</head>
<body>
<p><input type="button" onclick="javascript:volver();" value="Volver" class="btn"></p>
<table width="700" border="1" cellpadding="10" cellspacing="0" bordercolor="#3399CC">
<tr align="center" class="titulo_resaltado">
<th>id</th>
<th>Tarea Pendiente</th>
</tr>
<?
$sql = "select idtarea, tarea FROM tarea WHERE iduser='".$user."' AND notificar ='pendiente'";
$querytarea = mysql_query($sql) or die(mysql_error());
while ($row = mysql_fetch_array($querytarea))
{ ?>
<tr>
<td> <?echo $row['idtarea'];?> </td>
<td> <?echo $row['tarea'];?> </td>
</tr>
<?
}
?>
</body>
</html>
<?php
}
?>
Como ven la variable usr viene de otra pagina x donde el usuario ya fue logueado y por lo tanto me debe mostrar los mensajes de ese usuario pero no me muestra nada.
una ayudita no vendria mal please.
saludos brothers....
![sonriente](http://static.forosdelweb.com/fdwtheme/images/smilies/smile.png)