Alomax_

Untitled

Apr 15th, 2015
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. <?php
  2. include("header.php");
  3. ?>
  4. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  5. <html>
  6. <head>
  7. <title><?php print $blog_title; ?></title>
  8. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  9. <link href="styles.css" rel="stylesheet" type="text/css">
  10. <meta name="Script" content="geoBlog 1.0 STABLE">
  11. <meta name="Author" content="The7thGuest">
  12. <meta name="Homepage" content="http://geoblog.the-bronze.me.uk">
  13. </head>
  14.  
  15. <body>
  16. <table width="600" border="0" class="table">
  17. <tr>
  18. <td><?php print($blog_user); ?></td>
  19. </tr>
  20. </table>
  21. <br>
  22. <table width="600" border="0" class="table">
  23. <tr>
  24. <td>
  25. <?php
  26. $query[550] = mysql_query("SELECT * FROM geo_blog ORDER BY id DESC LIMIT 50");
  27. print mysql_error();
  28. while($result = mysql_fetch_array($query[550])) {
  29. $temp_id = $result['id'];
  30. $temp_date = convdate($result['timestamp']);
  31. $temp_title = $result['title'];
  32. $temp_views = $result['views'];
  33. $query[758] = mysql_query("SELECT count(*) AS total FROM geo_comment WHERE linkid=$temp_id");
  34. $comments = mysql_fetch_array($query[758]);
  35. if($comments['total'] < 1) {
  36. $comments['total'] = 0;
  37. }
  38. print("<b>" . $temp_date . " - <a href=\"viewblog.php?id=" . $temp_id . "\">" . $temp_title . "</a></b>&nbsp;&nbsp;&nbsp;&nbsp;(" . $temp_views . " views, " . $comments['total'] . " comments)<br>");
  39. } //End While
  40. ?>
  41. </td>
  42. </tr>
  43. </table>
  44. <br>
  45. <table width="600" border="0" class="table">
  46. <tr>
  47. <td>Powered By<b> <a href="http://geoblog.the-bronze.me.uk">geoBlog</a> </b>written
  48. by<b> The7thGuest</b></td>
  49. </tr>
  50. </table>
  51. <?php
  52. include("footer.php")
  53. ?>
  54. </body>
  55. </html>
Advertisement
Add Comment
Please, Sign In to add comment