Guest User

Untitled

a guest
May 20th, 2018
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. <?php
  2. include("mysql_connect_db.php");
  3.  
  4. $query = "SELECT * FROM `FAQ_BEHEERDER`";
  5. $result = mysqli_query($db_connection, $query) or die ("query fout: ".$query);
  6. $row = mysqli_fetch_row($result);
  7. ?>
  8. <link rel='stylesheet' type='text/css' href='Stylesheet/style.css' />
  9. <div id="faq_beheerder">
  10. <table border="1">
  11.  
  12. <tr>
  13. <th>topic</th>
  14. <th>question</th>
  15. <th>answer</th>
  16. </tr>
  17.  
  18. <?php
  19. while ($row = mysqli_fetch_array($result) )
  20. {
  21. echo "<tr>
  22. <td>".$row["topic"].",</td>
  23. <td>".$row["question"]."</td>
  24. <td>".$row["answer"]."</td>
  25. </tr>";
  26. }
  27.  
  28. ?>
  29.  
  30. </table>
  31. </div>
Add Comment
Please, Sign In to add comment