Ver Mensaje Individual
  #2 (permalink)  
Antiguo 01/04/2009, 07:49
Avatar de David
David
Moderador
 
Fecha de Ingreso: abril-2005
Ubicación: In this planet
Mensajes: 15.720
Antigüedad: 19 años, 10 meses
Puntos: 839
Respuesta: Tamaño de la imagen segun Variable MySQL

Sólo tienes que hacer un if:
Código php:
Ver original
  1. if (tipo == 'tipo deseado') {
  2.     $width = 'x';
  3.     $height = 'x';
  4. }
  5. /* Imprimir dentro del atributo height y width los valores de $width y $height */
__________________
Por favor, antes de preguntar, revisa la Guía para realizar preguntas.