/siirler.php

https://bitbucket.org/basakerdamar/personalwritingswebsite-dynamicwebsite · PHP · 49 lines · 48 code · 1 blank · 0 comment · 1 complexity · de4ac5d1c552237fba8c01620d0f611a MD5 · raw file

  1. <?php
  2. require("connect.php");
  3. ?>
  4. <!DOCTYPE html>
  5. <html>
  6. <head>
  7. <title>Şiirler</title>
  8. <?php include("header.php"); ?>
  9. </head>
  10. <body>
  11. <div id="fb-root"></div>
  12. <script>(function(d, s, id) {
  13. var js, fjs = d.getElementsByTagName(s)[0];
  14. if (d.getElementById(id)) return;
  15. js = d.createElement(s); js.id = id;
  16. js.src = "//connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v2.8";
  17. fjs.parentNode.insertBefore(js, fjs);
  18. }(document, 'script', 'facebook-jssdk'));</script>
  19. <div class="container-fluid">
  20. <div class="page-header">
  21. <h1>Erkan Erdamar <small>Şiirlerim</small></h1>
  22. </div>
  23. <ul class="nav nav-tabs">
  24. <li role="presentation" ><a href="MainPage.php"><span class="glyphicon glyphicon-home"></span> Ana Sayfa</a></li>
  25. <li role="presentation" class="active"><a href="siirler.php">Şiirler</a></li>
  26. <li role="presentation"><a href="ozgecmis.php">Özgeçmiş</a></li>
  27. <li role="presentation"><a href="yazilar.php">Yazılar</a></li>
  28. </ul>
  29. <div class="row">
  30. <div class="col-md-8">
  31. <div class="fb-like" data-href="http://erkanerdamar.azurewebsites.net/siirler.php"
  32. data-layout="standard" data-action="like" data-size="large" data-show-faces="true" data-share="true"></div>
  33. <?php
  34. $tumsatirlar = mysqli_query( $link, "select baslik, content from siirler order by tarih desc");
  35. while($satir=mysqli_fetch_row( $tumsatirlar)){
  36. echo "<pre><h3>$satir[0]</h3><br/>$satir[1]<br/></pre>";
  37. }
  38. ?>
  39. <div class="fb-comments"></div>
  40. </div>
  41. <div class="col-md-4">
  42. Linkler:<br/>
  43. <a href="mailto:eerdamar@hotmail.com?Subject=erkanerdamar.azurewebsites.com" target="_top">Soru ve görüşleriniz için</a>
  44. <br/><a href="http://www.antoloji.com/erkan-erdamar/">antoloji.com</a></div>
  45. </div>
  46. <?php
  47. include('footer.php');
  48. ?>