Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- include("connect.php");
- function pokaArt(){
- $sql = "SELECT * FROM artykuly";
- $result = mysqli_query($conn, $sql);
- if(mysqli_num_rows($result) > 0)
- {
- while($row = mysqli_fetch_assoc($result))
- {
- $output .= '<div class="tytul">';
- $output .= '<p class="font-weight-bold text-uppercase ml-0 mb-3 text-center text-md-left">';
- $output .= $row["tytul"];
- $output .= '</p>';
- $output .= '</div>';
- $output .= '<div class="obrazek">';
- $output .= $row["obrazek"];
- $output .= '</div>';
- $output .= '<div class="zajawka">';
- $output .= '<p>';
- $output .= $row["zajawka"];
- $output .= '</p>';
- $output .= '</div>';
- $output .= '<div class="news">';
- $output .= '<p>';
- $output .= $row["news"];
- $output .= '</p>';
- $output .= '</div>';
- }
- }
- else
- {
- echo "Brak artykułów";
- }
- }
- mysqli_close($conn);
- 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