This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:web_development:overview [2022/02/07 12:21] mag |
en:web_development:overview [2023/08/16 09:33] (current) |
||
---|---|---|---|
Line 173: | Line 173: | ||
<ul> | <ul> | ||
<?php | <?php | ||
+ | // prepare list of photos | ||
$images = array(' | $images = array(' | ||
' | ' | ||
Line 178: | Line 179: | ||
' | ' | ||
' | ' | ||
+ | // create HTML code for nav items | ||
foreach($images as $k => $photo) | foreach($images as $k => $photo) | ||
{ | { | ||
- | $i = $k+1; | + | $i = $k+1; // display number is 1-5 instead of 0-4 used in $images |
- | echo "< | + | echo "< |
} | } | ||
?> | ?> |