Advertisement
Guest User

Untitled

a guest
Dec 14th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. include("connect.php");
  2.  
  3. function pokaArt(){
  4. $sql = "SELECT * FROM artykuly";
  5. $result = mysqli_query($conn, $sql);
  6.  
  7. if(mysqli_num_rows($result) > 0)
  8. {
  9. while($row = mysqli_fetch_assoc($result))
  10. {
  11. $output .= '<div class="tytul">';
  12. $output .= '<p class="font-weight-bold text-uppercase ml-0 mb-3 text-center text-md-left">';
  13. $output .= $row["tytul"];
  14. $output .= '</p>';
  15. $output .= '</div>';
  16.  
  17. $output .= '<div class="obrazek">';
  18. $output .= $row["obrazek"];
  19. $output .= '</div>';
  20.  
  21. $output .= '<div class="zajawka">';
  22. $output .= '<p>';
  23. $output .= $row["zajawka"];
  24. $output .= '</p>';
  25. $output .= '</div>';
  26.  
  27. $output .= '<div class="news">';
  28. $output .= '<p>';
  29. $output .= $row["news"];
  30. $output .= '</p>';
  31. $output .= '</div>';
  32. }
  33. }
  34. else
  35. {
  36. echo "Brak artykułów";
  37. }
  38. }
  39.  
  40. mysqli_close($conn);
  41.  
  42.  
  43. Parse error: syntax error, unexpected ';', expecting '{' in /home/s35525/www/c5/funkcje.php on line 4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement