Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. <?php
  2. $termins = mysqli_query($link,"
  3. SELECT id,class,
  4. GROUP_CONCAT(termin SEPARATOR ', ') AS termin
  5. FROM termins
  6. GROUP BY class
  7. ORDER BY class");
  8. while($row = mysqli_fetch_assoc($termins)){
  9.  
  10. ?>
  11. <h3><?php echo htmlspecialchars($row['class']);?></h3>
  12. <a href="#<?php echo htmlspecialchars($row['id']);?>"><?php echo htmlspecialchars($row['termin']);?></a>
  13. <br>
  14.  
  15. <?php
  16. }
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement