Advertisement
Guest User

Untitled

a guest
Apr 9th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. <?php
  2. $servername ="localhost";
  3. $username = "root";
  4. $password = "usbw";
  5. $dbname = "vliegtuig";
  6.  
  7. $connect1 = new mysqli($servername, $username, $password, $dbname);
  8.  
  9. if($connect1->connect_error)
  10. {
  11. die("Connection failed: " . $connnect1->connect_error);
  12. }
  13.  
  14. echo "";
  15.  
  16. $sql = "SELECT * FROM plane_artikel";
  17. $qresult = $connect1->query($sql);
  18. if($qresult->num_rows>0){
  19.  
  20.  
  21. while ($endresult = $qresult->fetch_assoc()){
  22.  
  23. // <img src="fotos/<?php echo $endresult["K_Foto"]?->">
  24. ?>
  25.  
  26. <div id="fullartikel">
  27.  
  28. <div id="afbeelding">
  29.  
  30. <img id="afbeeldingsize" src="images/<?php echo $endresult["foto"]?>">
  31. </div>
  32.  
  33. <div id="artikeldetail">
  34.  
  35. <input type="text" id="omschrijving" value="<?php echo $endresult["omschrijving"]?>">
  36. <a href=\"?artID=". $value["artID"] ."\" id="btnDetails">details</a>
  37. </div>
  38.  
  39.  
  40.  
  41. </div>
  42.  
  43.  
  44.  
  45.  
  46. <?php
  47.  
  48. }
  49. }
  50. else{
  51.  
  52. echo "0 results";
  53. }
  54.  
  55. $connect1->close();
  56.  
  57. ?>
  58. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement