
10/04/2008, 19:42
|
 | | | Fecha de Ingreso: febrero-2006 Ubicación: Tijuana,B.C. Mexico
Mensajes: 151
Antigüedad: 19 años Puntos: 2 | |
Re: ayuda plissss con el siguiente codigo <?php
$db = mysql_connect("localhost","root");
mysql_select_db("confirmacion",$db);
$texto_consulta = "SELECT * FROM ejecutivo";
$consulta = mysql_query($texto_consulta);
$html = "<html><head><title>Herramienta de Confirmacion</title></head><body>";
$html = $html."";
$html.= "<table border = 1><tr><td style='font-weight:bold;'>idejecutivo</td></tr>";
$cuantos = mysql_num_rows($consulta);
for($i=0;$i<$cuantos;$i++)
{
$arreglo_temporal = mysql_fetch_row($consulta);
$html.="<tr><td><a onclick="bringSomeData(this)">".$arreglo_temporal[1]."</a></td></tr>";
}
$html.= "</table></body></html>";
echo $html;
?>
<script type="text/javascript">
function bringSomeData(element)
{
var text = element.innerHTML;
/*AQUI HAS EL AJAX REQUEST , SI NO SABES BUSCA UNO EN GOOGLE O EN LOS FAQ DE ESTE FORO*/
}
</script> |