Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Portfolio!</title>
- <link rel="stylesheet" type="text/css" href="portfoliocss.css">
- <head>
- <body>
- <div id="Content">
- <?php
- $host = "localhost";
- $Username = "15ao";
- $Password = "!ao15#2016";
- $db = "15ao";
- // Create connection
- $link = @mysqli_connect($host, $Username, $Password, $db);
- // Check connection
- if (!$link) {
- die("Connection failed: " . mysqli_connect_error());
- }
- //echo "Connected successfully" . "<br/>";
- $query = "SELECT * FROM YouranKater;";
- $resultaat = mysqli_query($link, $query);
- if ($resultaat !== FALSE)
- {
- while($rij = mysqli_fetch_array($resultaat))
- {
- echo "<h3><b>" . $rij['Titel'] . "</h3></b><br/>";
- echo "<img id='foto' src=\"./fotos/" . $rij['Plaatje']."\"></td></tr><br/>";
- echo "" . nl2br($rij['Beschrijving']) . "<br/>";
- echo "<b>Functie: " . $rij['Functie'] . "</b><br/><br/>";
- echo "Talen: " . $rij['Talen'] . "<br/>";
- echo "" . $rij['Datum'] . "<br/>";
- echo '<a href="http://youran.210media.nl/picture.php" target="_blank">' . $rij['Link'] . '</a><br/>';
- }
- }
- else
- {
- echo mysqli_error($link) . "-" . $query;
- }
- ?>
- </div>
- </body
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement