Advertisement
Guest User

Untitled

a guest
May 27th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. <!DOCTYPE html>
  2.  
  3. <html lang="en-US">
  4.  
  5.  
  6. <head>
  7.  
  8. <?php
  9.  
  10. ini_set('magic_quotes_gpc', 'off');
  11.  
  12. include("db_connect.php");
  13. $sql = "SELECT * FROM articles ORDER BY myIndex DESC";
  14. $result = mysqli_query($conn, $sql);
  15. ?>
  16.  
  17. <title>Jake Schweihs - Blog</title>
  18. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  19. <meta name="description" content="Jake Schweihs' 3d rigging and modeling portfolio" />
  20. <meta name="keywords" content="rigging, modeling, maya, technical artist, 3d art, pixel art" />
  21. <meta name="robots" content="all" />
  22. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no">
  23.  
  24. <link rel="stylesheet" type="text/css" href="style.css">
  25. </head>
  26.  
  27. <body>
  28.  
  29. <?php include("nav.php"); ?>
  30.  
  31. <div id="contentFrame">
  32. <div id="contentTop"></div>
  33. <div id="contentMid">
  34. <div id="innerContentNews">
  35. <br>
  36. <ul>
  37. <?php if (mysqli_num_rows($result) > 0) {
  38. while($row = mysqli_fetch_assoc($result)) {
  39. $articleDate = date_create($row['date']); ?>
  40. <li>
  41. <h1><a href="/<?php echo $row['urlTitle']; ?>"><?php echo $row['articleTitle']; ?></a></h1>
  42. <h2><?php echo date_format($articleDate, 'F jS, Y'); ?></h2>
  43. <div id="newsBlock">
  44. <p class="previewP">"<?php echo $row['articlePreview']; ?>..."</p>
  45. </div>
  46. </li>
  47. <?php }
  48. } ?>
  49. </ul>
  50. </div>
  51. <br>
  52. </div>
  53. <div id="contentBot"> </div>
  54. </div>
  55.  
  56. <?php include("footer.php"); ?>
  57.  
  58. </body>
  59.  
  60. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement