tengo el siguiente problema ...
e creado 2 archivos .php mostrarpersonas.php y mostrarcitas.php
en mostrarpersonas.php tengo esto ...
<?
echo ("<table border=1 width=700>");
$sql = "select * from personas"; // muestra tabla
$rs = new BDObject();
$rs->execQuery ($sql);
//echo '<a href="mostrarcitas.php" target="($rs->getValue ("nombre")" > link </a>';
//echo '<a href="$nombre">"mostrarcitas.php"</a>';
while (!$rs->EOF())
{
echo ("<tr>");
echo ($rs->getValue("id") . "</td>" );
echo ("<td>");
echo '<a href= "mostrarcitas.php? id=">';
echo ($rs->getValue ("nombre") . "</td>" );
echo ("<td>");
echo ($rs->getValue ("direccion") . "</td>" );
echo ("<td>");
echo ($rs->getValue ("telefono") . "</td>" );
echo ("<td>");
echo ($rs->getValue ("fecha_cumpleanios") . "</td>" );
echo ("</tr>");
$rs->Next();
}
echo ("</table>");
?>
</body>
</html>
bien hasta ahi barbaro ,,, el codigo que hice fue crear los nombres en hipervinculos de esa manera al clickear en algun nombre me tire a otra pagina y me muestre solo el campo de " notas " de Cada persona que se encuentra en el archivo mostrarcitas.php .. pero al clickear me muestra Todo lo que contiene mostrarcitas ...tengo este codigo e intentado de muchas formas a ver si me salia pero no lo logre ...
echo '<a href= "mostrarcitas.php? id= ???????">';
echo ($rs->getValue ("nombre") . "</td>" );
en la base de datos mostrarpersonas se llama ..personas
en la base de datos mostrarcitas se llama ... citas
mostrarcitas.php
el codigo es el siguiente ...
<?
echo ("<table border=1 width=700>");
$sql = "select * from citas"; // muestra tabla
$rs = new BDObject();
$rs->execQuery ($sql);
while (!$rs->EOF())
{
echo ("<tr>");
echo ("<td>");
echo ($rs->getValue ("id") . "</td>" );
echo ("<td>");
echo ($rs->getValue ("idpersona") . "</td>" );
echo ("<td>");
echo ($rs->getValue ("fecha") . "</td>" );
echo ("<td>");
echo ($rs->getValue ("nota") . "</td>" );
echo ("</tr>");
$rs->Next();
}
echo ("</table>");
?>
espero que con esos datos me puedan ayudar si me falta alguno por favor diganmelo , repito soy nuevo en esto cualquier ayuda sera bienvenida
muchas gracias.
