Ver Mensaje Individual
  #2 (permalink)  
Antiguo 21/02/2013, 13:53
Avatar de evolutionrgm
evolutionrgm
 
Fecha de Ingreso: mayo-2011
Mensajes: 108
Antigüedad: 13 años
Puntos: 5
Respuesta: traer valores de una tabla a un arreglo y ponerle botones de editar y borr

si vaz a usar grid debes realizarlo con ajax o jquery .. si quieres poner tablas aca te dejo un ejempo saludos

<table align="center" id="hor-minimalist-a" summary="Employee Pay Sheet">
<thead>
<tr>
<th width="245" scope="col">Codigo de Establecimiento</th>
<th width="223" scope="col">Eliminar</th>
</tr>
</thead>
<tbody>
<?php
$sql = mysql_query("SELECT * FROM t_ccosto ");
while ($myrow = mysql_fetch_assoc($sql)){
$elim ="reg_cc.php?id=$myrow[idcc]&eliminar";
?>
<tr>
<td><?php echo $myrow['descripcion'];?></td>
<td><a href="<?php echo $elim;?>"><img src="png/glyphicons_143_database_ban.png" width="26" height="27" /></td>
</tr>
<?php
}
?>
</tbody>
</table>