Guest User

Untitled

a guest
Jan 23rd, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. <table border="0" class="datosTablas">
  2. <thead>
  3. <td>Id</td>
  4. <td>Nombre</td>
  5. <td></td>
  6. <td></td>
  7. </thead>
  8. <?php
  9. //Muestro dinámicamente los datos del registro generado por el query
  10. while($registro = mysql_fetch_array($ejecutarConsulta)){
  11. ?>
  12. <tr>
  13. <td><?php echo $registro["idestado"];?></td>
  14. <td><?php echo $registro["descripcion"];?></td>
  15. <td><input type="button" value="Modificar" onclick="window.location='?cat=estadosCiviles&op=modificar&idestado=<?php echo $registro["idestado"];?>'" /></td>
  16. <!--Al presionar el botón de eliminar envía el id seleccionado como parámetro de la funcion JS llamada eliminar(id)-->
  17. <td><input type="button" value="Eliminar" onclick="eliminar(<?php echo $registro["idestado"];?>,'e');" /></td>
  18. </tr>
  19. <?php }//while ?>
  20. </table>
Add Comment
Please, Sign In to add comment