Location: PHPKode > projects > WBBlog > inc/dayentry.inc.php

WBBlog - Single User Blog
Version 1.0
Michael Lintz - LIQUA Web Solutions
hide@address.com - http://www.liqua.com
Copyright (C) 2005 

This program is free software; you can redistribute it and/or modify it under the terms of 
the GNU General Public License as published by the Free Software Foundation; either version 
2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; 
if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA


<?php if (isset($cmd) && $cmd == "dayentry"): ?>

$pageTitle = $pt_dayentry;
$pageDesc = $pd_dayentry;
$pageKeywords = $pk_dayentry;
$pageAuthor = $pa_dayentry; 

include 'head.inc.php';

<table class='ContentTitle'><tr><td>Entries for <? echo date('l, F jS Y',strtotime($date)); ?></td></tr></table>
<br />
     $blogQuery = "SELECT e_id, e_author, e_title, e_content, e_category, e_timestamp FROM entry WHERE date_format(e_timestamp, '%Y-%m-%d') = '$date'";

     $blogResult = mysql_query($blogQuery); 

     if (mysql_numrows($blogResult) > 0) { 

          while (list($e_id,$e_author,$title,$content,$e_category,$e_timestamp) =  
               mysql_fetch_row($blogResult)) { 

		$newtime = date('g:i A',strtotime($e_timestamp)); 
		 <table class='BlogHeader'>
    		<tr class='BlogTitle'>
    		<td><? echo $title ?></td>
    		<tr class='BlogDate'>
    		<td>Posted <? echo $newtime ?> | <a href="index.php?cmd=viewentry&e_id=<? echo $e_id; ?>">Link</a> | By: <? echo $e_author; ?> | <a href="index.php?cmd=category&e_category=<? echo $e_category; ?>"><? echo $e_category; ?></a></td>

    		<table class='BlogContent'>
    		<td><? echo $content ?></td>
		    <br />
		    <br />
		    <br />
               //echo "<p><strong>$title</strong><br />$content<br />$newdate</p>"; 


     } else { 

           echo "No blogs available"; 


     echo ""; 

<?php endif; ?>
Return current item: WBBlog