Ver Mensaje Individual
  #14 (permalink)  
Antiguo 08/10/2012, 08:01
edward_bukowski_1980
 
Fecha de Ingreso: octubre-2012
Ubicación: Caracas, Venezuela
Mensajes: 31
Antigüedad: 11 años, 7 meses
Puntos: 0
Respuesta: Comparacion de datos en una variable

Archivo: modificar2.php

Código:
<?php 
require ("funciones.php");
$idc = conectar();

$sql = "select * from musica order by album";
$res = ejecutar ($sql, $idc);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Sistema</title>
<link href=".css" rel="stylesheet" type="text/css" />
</head>

<body>

<table width="692" height="103" border="0" align="center" class="color2">
<caption>
<br />
<br />
LISTADO PARA MODIFICAR REGISTRO <br />
<br /></caption>

  <tr>
    <th width="40" height="23" align="center">Id</th>
    <th width="149" align="center">Álbum</th>
    <th width="125" align="center">Artista</th>
    <th width="77" align="center">Canciones</th>
    <th width="101" align="center">Géneros</th>
    <th width="51" align="center">Año</th>
    <th width="77" align="center">Imagen</th> 
     </tr>
  <?php 
  $total = totalRegistros($res);
  for ($i=0; $i<$total; $i++) {
	  $fila = getRegistro($res);
  ?>
   <tr>
   <td height="74" align="center"><?php echo $fila['id']; ?></td>
    <td><a href="modificar.php?id=<?php echo $fila['id']; ?>"><?php echo $fila['album']; ?> </a></td>
   
    
    <td align="center"><?php echo $fila['artista']; ?></td>
    <td align="center"><?php echo $fila['canciones']; ?></td>
     <td align="center"><?php echo $fila['variable']; ?>
     </td>
      <td align="center"><?php echo $fila['ano']; ?></td>
       <td width="77" align="center"><?php echo "<img src='Imagenes/" .$fila['imagen']. "' height='80'/>"; ?> </td> 
	
  <?php } ?>
  
</table>
</body>
</html>
<?php 
cerrar ($idc);
?>
Amigo si necesita algun archivo más, me dices, gracias por todo, saludo.