Tema: Php+css
Ver Mensaje Individual
  #4 (permalink)  
Antiguo 25/11/2011, 07:28
Avatar de chwc
chwc
 
Fecha de Ingreso: julio-2008
Ubicación: Buenos Aires ! :D
Mensajes: 814
Antigüedad: 15 años, 8 meses
Puntos: 103
Respuesta: Php+css

si, te conviene hacer lo siguiente:
Cita:
$cpersonas = mysql_query ("SELECT Nombre, Foto FROM Personas" ,$conexion)
while ($rowpersonas = mysql_fetch_row($cpersonas)){?>
<table>
<tr>
<td class="foto" style="background: url('Images/Personas/<?=$rowpersonas[1]?>');" ><? echo "$rowpersonas[0]"?></td>
</tr>
</table>
}
y tambien poner un estilo de la siguiente manera, pero solo un estilo hace falta (no uno para cada foto)
Cita:
td.foto{
width: 147px;
height: 57px;
padding-left: 10px;
color: #000000;
font-weight: bold;
border: solid 1px #99be84;
}
Saludos