Cita:
Iniciado por Nefertiter //pones
}else if ()....
//tiene q ser
}elseif(){.....
¿Desde cuándo? Cualquiera de las dos opciones está bien y producen
exactamente el mismo resultado. Entonces, ¿por qué
tiene que ser de una manera y no de la otra?
Para más información:
Cita: There may be several elseifs within the same if statement. The first elseif expression (if any) that evaluates to TRUE would be executed. In PHP, you can also write 'else if' (in two words) and the behavior would be identical to the one of 'elseif' (in a single word). The syntactic meaning is slightly different (if you're familiar with C, this is the same behavior) but the bottom line is that both would result in exactly the same behavior.
http://ar.php.net/manual/en/control-...res.elseif.php
Suerte
Califa