Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <table border="0" class="datosTablas">
- <thead>
- <td>Id</td>
- <td>Nombre</td>
- <td></td>
- <td></td>
- </thead>
- <?php
- //Muestro dinámicamente los datos del registro generado por el query
- while($registro = mysql_fetch_array($ejecutarConsulta)){
- ?>
- <tr>
- <td><?php echo $registro["idestado"];?></td>
- <td><?php echo $registro["descripcion"];?></td>
- <td><input type="button" value="Modificar" onclick="window.location='?cat=estadosCiviles&op=modificar&idestado=<?php echo $registro["idestado"];?>'" /></td>
- <!--Al presionar el botón de eliminar envía el id seleccionado como parámetro de la funcion JS llamada eliminar(id)-->
- <td><input type="button" value="Eliminar" onclick="eliminar(<?php echo $registro["idestado"];?>,'e');" /></td>
- </tr>
- <?php }//while ?>
- </table>
Add Comment
Please, Sign In to add comment