tFix syntax errors - adamsgaard.dk - my academic webpage | |
git clone git://src.adamsgaard.dk/adamsgaard.dk | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 1d03ede7793674dcf485a47429e73b8a8a509824 | |
parent 349b57a1e8a57b681dbfbebd495443faa365b427 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Thu, 5 Dec 2019 13:32:13 +0100 | |
Fix syntax errors | |
Diffstat: | |
M output/weather.php | 25 +++++++++++++++---------- | |
1 file changed, 15 insertions(+), 10 deletions(-) | |
--- | |
diff --git a/output/weather.php b/output/weather.php | |
t@@ -52,18 +52,23 @@ | |
<br> | |
<img src="https://servlet.dmi.dk/byvejr/servlet/byvejr?by=<?php echo $zip; ?>&… | |
<?php | |
- lon = ""; lat = ""; | |
+ $lon = ""; | |
+ $lat = ""; | |
if ($zip == 1000) { | |
- lon = "55.68"; lat = "12.57"; | |
- elseif ($zip == 7700) { | |
- lon = "56.96"; lat = "8.70"; | |
- elseif ($zip == 8000) { | |
- lon = "56.16"; lat = "10.20"; | |
- elseif ($zip == 9520) { | |
- lon = "56.84"; lat = "9.89"; | |
+ $lon = "55.68"; | |
+ $lat = "12.57"; | |
+ } elseif ($zip == 7700) { | |
+ $lon = "56.96"; | |
+ $lat = "8.70"; | |
+ } elseif ($zip == 8000) { | |
+ $lon = "56.16"; | |
+ $lat = "10.20"; | |
+ } elseif ($zip == 9520) { | |
+ $lon = "56.84"; | |
+ $lat = "9.89"; | |
} | |
if ($lon != "") { | |
- echo "<br><img src=\"https://clearoutside.com/forecast_image_l… | |
- > | |
+ echo "<br><p><img src=\"https://clearoutside.com/forecast_imag… | |
+ } | |
?> | |
</article> |