Ver Mensaje Individual
  #3 (permalink)  
Antiguo 26/05/2008, 14:41
Avatar de PaMy19
PaMy19
 
Fecha de Ingreso: mayo-2008
Ubicación: Terrassa
Mensajes: 29
Antigüedad: 15 años, 10 meses
Puntos: 0
Respuesta: botones borrar y modificar en php

esta es la tabla
Sinceramente no entendido muy bien lo que has querido decir xD lo siento
gracias por responder muy rapido




este es el codigo
Código PHP:
                                  <?php
// Conexion, seleccion de base de datos
$enlace mysql_connect('localhost','root','')
    or die(
'No pudo conectarse' mysql_error());

mysql_select_db('direct') or die('No pudo seleccionarse la BD.');

// Realizar una consulta SQL
$consulta  'SELECT * FROM dept';
$resultado mysql_query($consulta) or die('La consulta fall&oacute;: ' mysql_error());

// Impresion de resultados en HTML
?>
  <?php
echo "<table width=530 border=2 cellpadding=0 cellspacing=0> <td align=center>ID</td>  <td align=center>departamento</td>  <td align=center>nº de pc</td>  <td align=center>Sistema Operativo</td><td>";
while (
$linea mysql_fetch_array($resultadoMYSQL_ASSOC)) {
  echo 
"\t  <tr><tr> </tr>\n";
    foreach (
$linea as $valor_col) {
    
        echo 
"\t\t<td align=center>$valor_col</td>\n";
    }
    echo 
"\t</tr>\n";
    
?>
</div>
<td> 
<td>

  <div align="center">
    <button class="mult_submit" type="submit" name="submit_mult" value="Borrar" title="Borrar">
    <img src="./imagenes/Borrar.png" alt="Borrar" width="30" height="30" align="middle" class="icon" title="Borrar">
      </div>
   </button>

<td>  

<div alig="center">
 <button class="mult_submit" type="submit" name="submit_mult" value="Exportar" title="Exportar">
 <img src="./imagenes/editar_html.png" alt="cambiar" width="30" height="30" align="middle" class="icon" title="cambiar"> 
  </button>
  </div> 
   
    <?php