Hola , estoy haciendo un script para mostrar el tiempo en un sitio por extraño motivo me imprime la imagen mostlycloudy cuando por parametro esta viniendo OVERCAST y deberia imprimir la imagen fog.
Espero alguien me ayude, gracias
Código PHP:
if (Date("G") > 06 && Date("G") <= 18){
if ($row['tiempo'] == "Clear"){
echo '<img src="./sites/all/themes/arctica_lafuente/weather/Clear.png">';
} elseif ($row['tiempo'] == "Partly Cloudy" || "Mostly Sunny" || "Partly Sunny" || "Mostly Cloudy"){
echo '<img src="./sites/all/themes/arctica_lafuente/weather/mostlycloudy.png">';
} elseif ($row['tiempo'] == "Fog" || "Hazy" || "Overcast"){
echo '<img src="./sites/all/themes/arctica_lafuente/weather/fog.png">';
} elseif ($row['tiempo'] == "Sleet" || "Rain"){
echo '<img src="./sites/all/themes/arctica_lafuente/weather/rain.png">';
} elseif ($row['tiempo'] == "Chance Rain" || "Chance Sleet"){
echo '<img src="./sites/all/themes/arctica_lafuente/weather/chancerain.png">';
} elseif ($row['tiempo'] == "Storms"){
echo '<img src="./sites/all/themes/arctica_lafuente/weather/storms.png">';
}else{
echo '<img src="./sites/all/themes/arctica_lafuente/weather/na.png">';
}
}else {
if ($row['tiempo'] == "Clear"){
echo '<img src="./sites/all/themes/arctica_lafuente/weather/nocheclear.png">';
} elseif ($row['tiempo'] == "Partly Cloudy" || "Mostly Sunny" || "Partly Sunny" || "Mostly Cloudy"){
echo '<img src="./sites/all/themes/arctica_lafuente/weather/nochecloudy.png">';
} elseif ($row['tiempo'] == "Fog" || "Hazy" || "Overcast"){
echo '<img src="./sites/all/themes/arctica_lafuente/weather/fog.png">';
} elseif ($row['tiempo'] == "Sleet" || "Rain"){
echo '<img src="./sites/all/themes/arctica_lafuente/weather/rain.png">';
} elseif ($row['tiempo'] == "Chance Rain" || "Chance Sleet"){
echo '<img src="./sites/all/themes/arctica_lafuente/weather/chancerain.png">';
} elseif ($row['tiempo'] == "Storms"){
echo '<img src="./sites/all/themes/arctica_lafuente/weather/storms.png">';
} else{
echo '<img src="./sites/all/themes/arctica_lafuente/weather/na.png">';
}
}