Guest User

Untitled

a guest
Oct 23rd, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.99 KB | None | 0 0
  1.   <?php
  2.     include 'include/config.php';
  3.     include 'include/db_select.php';
  4.     include 'include/tbl_select.php';
  5.  
  6.     $sql="SELECT * FROM $quotes ORDER BY $quotes .`id` DESC";
  7.     $result=mysql_query($sql);
  8.     $comment=nl2br(htmlspecialchars($comment));
  9.   ?>
  10. <!doctype html>
  11. <html lang="da">
  12.  
  13.   <head>
  14.     <title>#uplink</title>
  15.     <meta http-equiv="Content-Type" content="text/html; charset=utf8_genral_ci" />
  16.     <link rel="stylesheet" type="text/css" href="style/index_style.css" />
  17.   </head>
  18.  
  19.   <body>
  20.     <div align="right"><a href='quote/'>Add quote</a></div><div align="center"><strong>#uplink</strong></div>
  21.   <?
  22.     while($rows=mysql_fetch_array($result)){
  23.   ?>
  24.     <div class="box">
  25.       <div class="bar"> <? echo "#" . $rows['id'] . " - " . $rows['datetime']; ?></div>
  26.       <div class="comment"> <? echo htmlspecialchars($rows['comment']); ?></div>
  27.     </div>
  28.       <br>
  29.   <?
  30.     }
  31.   ?>
  32.   </body>
  33.  
  34. </html>
  35.   <?
  36.     include 'include/db_close.php'; //close db
  37.   ?>
Add Comment
Please, Sign In to add comment