![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
14/06/2010, 14:47
|
| | Fecha de Ingreso: marzo-2010
Mensajes: 140
Antigüedad: 14 años, 11 meses Puntos: 0 | |
Respuesta: problema para hacer consulta Me mando esto:
resource(5) of type (mysql result)
Y ya hice esto
<?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{
$id = $_GET['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='".$id."' AND notificar='pendiente'";
$querytarea = mysql_query($sql) or die(mysql_error());
echo "<pre>";
var_dump($querytarea);
echo "</pre>";
while ($row = mysql_fetch_array($querytarea))
{ ?>
<tr>
<td> <?echo $row['idtarea']?> </td>
<td> <?echo $row['tarea']?> </td>
</tr>
<?
}
?>
</body>
</html>
<?php
}
?>
Pero no me muestra la informacion que quiero!!!!!!!!!!! |