Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include 'include/config.php';
- include 'include/db_select.php';
- include 'include/tbl_select.php';
- $sql="SELECT * FROM $quotes ORDER BY $quotes .`id` DESC";
- $result=mysql_query($sql);
- $comment=nl2br(htmlspecialchars($comment));
- ?>
- <!doctype html>
- <html lang="da">
- <head>
- <title>#uplink</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf8_genral_ci" />
- <link rel="stylesheet" type="text/css" href="style/index_style.css" />
- </head>
- <body>
- <div align="right"><a href='quote/'>Add quote</a></div><div align="center"><strong>#uplink</strong></div>
- <?
- while($rows=mysql_fetch_array($result)){
- ?>
- <div class="box">
- <div class="bar"> <? echo "#" . $rows['id'] . " - " . $rows['datetime']; ?></div>
- <div class="comment"> <? echo htmlspecialchars($rows['comment']); ?></div>
- </div>
- <br>
- <?
- }
- ?>
- </body>
- </html>
- <?
- include 'include/db_close.php'; //close db
- ?>
Add Comment
Please, Sign In to add comment