http://rithiur.anthd.com/index.php
Copyright © 2007 - 2008 to Rithiur
line numbers: [ On, Off ]
Style [ Php Style, Custom Style, Phpedit Style, Plain Style ]
  1. <?php
  2.  
  3. define('PAGE_TITLE', 'Home');
  4. include 'includes/header.php';
  5. mininav('main');
  6.  
  7. ?>
  8.  
  9. <div class="index-highlight">
  10.  <div class="project-icon"><img src="images/rithiurcom_32.png" width="32" height="32" alt="" /></div>
  11.  <div class="text">
  12.   <span class="title">rithiur.com</span>
  13.   <span class="info">- New website for stuff by Rithiur</span>
  14.  </div>
  15.  <div class="link">&raquo; <a href="http://rithiur.com">http://rithiur.com</a></div>
  16. </div>
  17.  
  18. <div class="index-highlight">
  19.  <div class="project-icon"><img src="images/blogger_32.png" width="32" height="32" alt="" /></div>
  20.  <div class="text">
  21.   <span class="title">Serversided</span>
  22.   <span class="info">- Blog about web development and stuff related to it</span>
  23.  </div>
  24.  <div class="link">&raquo; <a href="http://serversided.blogspot.com">http://serversided.blogspot.com</a></div>
  25. </div>
  26.  
  27. <h2>Latest News at phpInDev</h2>
  28.  
  29. <p>Latest news and happenings here in phpInDev can be found below. Click the
  30. link for full article</p>
  31.  
  32. <div id="news">
  33. <?php
  34.  
  35. try
  36. {
  37.     if ($db === false)
  38.     {
  39.         throw new Exception('Unable to access database for newsdata');
  40.     }
  41.  
  42.     $sth = $db->query(
  43.         'SELECT news_id, news_date, news_url, news_text ' .
  44.         'FROM pid_news ' .
  45.         'ORDER BY news_date DESC ' .
  46.         'LIMIT 10');
  47.  
  48.     foreach ($sth as $row)
  49.     {
  50.         echo
  51.             " <div class=\"news-box\" id=\"news-$row[news_id]\">\n",
  52.             '  <div class="news-date">', date('jS M Y', $row['news_date']), "</div>\n",
  53.             "  <div class=\"news-text\">- <a href=\"" . htmlspecialchars($row['news_url']) ."\">$row[news_text]</a></div>\n",
  54.             " </div>\n";
  55.     }
  56. }
  57. catch(Exception $e)
  58. {
  59.     log_exception($e);
  60. }
  61.  
  62. ?>
  63. </div>
  64.  
  65. <p>For all previous news, see the <a href="archive.php">news archive</a>. News are
  66. also available in <a href="rss.php">rss format</a>.</p>
  67.  
  68. <h2>Introduction to phpInDev</h2>
  69.  
  70. <p>
  71.  phpInDev is a personal website intended to be a homepage for my mostly web
  72.  related projects and other programming stuff I've done. You can find here my
  73.  various php projects such as RSHiLib and Regex Tool in addition to tutorials
  74.  I've written for php and other programming related subjects. Feel free to
  75.  browse around the website and leave me some feedback if you like it.
  76. </p>
  77.  
  78. <p>
  79.  Please note that despite the perhaps slightly misleading website name, this
  80.  site has absolutely nothing to do with development of the php langauge itself.
  81.  This website is just my personal website with my php related projects.
  82. </p>
  83.  
  84. <p>
  85.  Like my work? You can show your generosity by making a small
  86.  <a href="donate.php">donation</a>.
  87. </p>
  88.  
  89. <?php include 'includes/footer.php'; ?>
line numbers: [ On, Off ]
Style [ Php Style, Custom Style, Phpedit Style, Plain Style ]
http://rithiur.anthd.com/index.php
Exec time: 0.04824 seconds
Lines: 89