Ver Mensaje Individual
  #6 (permalink)  
Antiguo 02/05/2009, 14:37
Avatar de pateketrueke
pateketrueke
Modernizr
 
Fecha de Ingreso: abril-2008
Ubicación: Mexihco-Tenochtitlan
Mensajes: 26.399
Antigüedad: 16 años
Puntos: 2534
Respuesta: Ayuda, bueno es duda

es simple if-then-else

Código:
SI "ALGO" ENTONCES "ESTO"
SI NO, Y "AQUELLO" ENTONCES "LO OTRO"
Y SI NO, "POR DEFECTO"
ETC...
Código PHP:
if ($foo == 'bar')
{
  
$img 'candy';
}
else
{
  
$img 'baz';
}

echo 
'<img src="/images/' $img '.png"/>'
__________________
Y U NO RTFM? щ(ºдºщ)

No atiendo por MP nada que no sea personal.