Ver Mensaje Individual
  #7 (permalink)  
Antiguo 13/02/2015, 15:06
matrixre9
 
Fecha de Ingreso: julio-2013
Ubicación: Durango, Dgo
Mensajes: 108
Antigüedad: 11 años, 7 meses
Puntos: 8
Respuesta: obtener id de una filla <table>

Tu código me sirvió muy bien ahora quisiera hacer otra consulta, tengo este codigo junto con el tuyo

Código PHP:
<?php

include ("leer/Extras/conexion.php");

//$con=conexion();



$res=mysql_query("select * from revision where estado='REVISION' ORDER BY  fecha_ing ASC limit 20",$con);

?>

<center><table  style="font-size:12px" border="8">
<tr width="300" height="100" align="center">
<th>Folio revision</th>
<th>Tipo Equipo</th>
<th>Tipo revision</th>
<th>Actualizar Antivirus</th>
<th>Actualizaciones</th>
<th>cont</th>
</tr>

<?php while($fila=mysql_fetch_array($res)){ 
//consulta para traer datos del equipo que tiene cada usuario

/*$res2=mysql_query("select * from equipos where id_trabajador='".$fila[id_trabajador]."'",$con);

while($fila2=mysql_fetch_array($res2))
{*/
$cont=$cont+1;


?>

<form>
<tr width="100" height="30" align="center">
<td onclick="javascript:window.open('http://google.com.mx/','','width=600,height=400,left=50,top=50,toolbar=yes');funcion()">
<?php echo $fila[folio_rev]; ?></a></td>
<td ><?php echo $fila[tipo_equipo]; ?></td>
<td><?php echo $fila[tipo_rev]; ?></td>
<td><?php echo $fila[respaldo]; ?></td>
<td><?php echo $fila[limpieza]; ?></td>
<td><?php echo $cont ?></td>
</tr>
</form>

<?php }?>
<script>
{
    document.querySelector("table").addEventListener("click", function(event){
    var y =event.target.innerText;
    alert(y);
},false);


}

</script>
Quisiera saber si exite la manera de mandar la variable "Y" (que se encuentra en el script) a otra pagina y cargar dicha pagina.(en la otra pagina quiero realizar una consulta con esta variable)