Advertisement
Guest User

Untitled

a guest
May 24th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Portfolio!</title>
  5.  
  6. <link rel="stylesheet" type="text/css" href="portfoliocss.css">
  7. <head>
  8.  
  9.  
  10. <body>
  11. <div id="Content">
  12.  
  13. <?php
  14. $host = "localhost";
  15. $Username = "15ao";
  16. $Password = "!ao15#2016";
  17. $db = "15ao";
  18. // Create connection
  19. $link = @mysqli_connect($host, $Username, $Password, $db);
  20.  
  21. // Check connection
  22. if (!$link) {
  23. die("Connection failed: " . mysqli_connect_error());
  24. }
  25. //echo "Connected successfully" . "<br/>";
  26.  
  27. $query = "SELECT * FROM YouranKater;";
  28.  
  29.  
  30.  
  31. $resultaat = mysqli_query($link, $query);
  32.  
  33. if ($resultaat !== FALSE)
  34. {
  35. while($rij = mysqli_fetch_array($resultaat))
  36. {
  37. echo "<h3><b>" . $rij['Titel'] . "</h3></b><br/>";
  38. echo "<img id='foto' src=\"./fotos/" . $rij['Plaatje']."\"></td></tr><br/>";
  39. echo "" . nl2br($rij['Beschrijving']) . "<br/>";
  40. echo "<b>Functie: " . $rij['Functie'] . "</b><br/><br/>";
  41. echo "Talen: " . $rij['Talen'] . "<br/>";
  42. echo "" . $rij['Datum'] . "<br/>";
  43. echo '<a href="http://youran.210media.nl/picture.php" target="_blank">' . $rij['Link'] . '</a><br/>';
  44.  
  45. }
  46. }
  47. else
  48. {
  49. echo mysqli_error($link) . "-" . $query;
  50. }
  51.  
  52.  
  53. ?>
  54. </div>
  55. </body
  56. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement