SHARE
TWEET

Untitled

a guest Dec 14th, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. include("connect.php");
  4.  
  5. function pokaArt(){
  6.     $sql = "SELECT * FROM artykuly";
  7.     $result = mysqli_query($conn, $sql);
  8.  
  9.     if(mysqli_num_rows($result) > 0)
  10.     {
  11.       while($row = mysqli_fetch_assoc($result))
  12.       {
  13.         $output .= '<div class="tytul">';
  14.         $output .= '<p class="font-weight-bold text-uppercase ml-0 mb-3 text-center text-md-left">';
  15.         $output .= $row["tytul"];
  16.         $output .= '</p>';
  17.         $output .= '</div>';
  18.  
  19.         $output .= '<div class="obrazek">';
  20.         $output .= $row["obrazek"];
  21.         $output .= '</div>';
  22.  
  23.         $output .= '<div class="zajawka">';
  24.         $output .= '<p>';
  25.         $output .= $row["zajawka"];
  26.         $output .= '</p>';
  27.         $output .= '</div>';
  28.  
  29.         $output .= '<div class="news">';
  30.         $output .= '<p>';
  31.         $output .= $row["news"];
  32.         $output .= '</p>';
  33.         $output .= '</div>';
  34.       }
  35.     }
  36.     else
  37.     {
  38.       echo "Brak artykułów";
  39.     }
  40.   }
  41.  
  42.   mysqli_close($conn);
  43.  
  44. ?>
  45.  
  46.  
  47.  
  48. Parse error: syntax error, unexpected ';', expecting '{' in /home/s35525/www/c5/funkcje.php on line 4
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top