Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo "<ul>";
- $suda = false;
- while ($line = mysqli_fetch_assoc($result))
- {
- $trida = $suda ? "suda" : "licha"; // stejné jako minule
- $suda = !$suda; // ! neguje současnou hodnotu a negaci ukládá pro příští iteraci
- echo "<li class=\"$trida\">{$line['den']}</li>";
- }
- echo "</ul>";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement