0){ unset ($_GET['posted']); unset ($_GET['pComment']); unset ($_GET['pName']); unset ($_GET['pEmail']); } else { $queryF = "insert into BlogComments (BlogID, Name, Email, Comment, CommentDate) values ('$id', '$Name', '$Email', '$Comment', NOW())"; $resultF = mysql_query($queryF); //add user info to user data $queryF4 = "select Email from BlogData where Email = '$Email'"; $resultF4 = mysql_query($queryF4); if (mysql_num_rows($resultF4) <= 0){ $queryF3 = "insert into BlogData (Name, Email, IP) values ('$Name', '$Email', '$IP')"; $resultF3 = mysql_query($queryF3); } if ($resultF){ unset ($_GET['posted']); unset ($_GET['pComment']); unset ($_GET['pName']); unset ($_GET['pEmail']); } else { $form_msg = "Could not add comment to blog. Please contact support@bludomain.com."; } } } else { $form_msg = "Please fill out all fields."; } } $TextFont = "Arial, Helvetica, sans-serif"; $TextSize = "12px"; ?> <?php echo $Header; ?>
 
0){ while ($row = mysql_fetch_array($result, MYSQL_BOTH)){ if ($id != ""){ $query_type = "id"; $query2 = "SELECT * FROM Blog WHERE ID = '$id' AND Visible = 'yes' ORDER BY PostDate ASC"; } else { if ($month!= ""){ $query_type = "month"; $query2 = "SELECT * FROM Blog WHERE DATE_FORMAT(PostDate, '%Y') = '$year' AND DATE_FORMAT(PostDate, '%M') = '$month' AND DATE_FORMAT(PostDate, '%M %d %Y') = '".$row[0]."' ORDER BY PostDate ASC"; } else { $query2 = "SELECT * FROM Blog WHERE DATE_FORMAT(PostDate, '%M %d %Y') = '".$row[0]."' ORDER BY PostDate ASC"; } } $result2 = mysql_query($query2); while ($row2 = mysql_fetch_array($result2, MYSQL_BOTH)){ if ($query_type == "recent" && $row2['Visible'] == 'yes'){ $post_no++; } if ($row2['Visible'] == 'yes' && $post_no <= $Recent){ ?>
 
 
=300){ ?>
$date
"; echo "$line

"; } else{ if ($row3[0] != $date){ $date = $row3[0]; echo "

$date
"; echo "$line

"; } } //DISPLAY HEADER if ($Header != ""){ echo "

".$row2['Header']."


"; } //DISPLAY CONTENT $Content = stripslashes(trim($row2['Content'])); $Content = ereg_replace("'", "'", $Content); $Content = ereg_replace("apos;", "'", $Content); if ($Content != ""){ echo "

".$Content."

"; } ?>
<? echo $row4['Picture']?> <? echo $row4['Picture']?>

          >> View/Post Comments ()
" valign="top" align="right">




Go To Main Page

 
" valign="top" align="right">