Adminstrator,

The following comment has just been posted on the Van Hargis Horsemanship Blog.

Name: '.$name.'
Email: '.$email.'

Comments:
'.$comment.'


If you wish to remove this comment, please login to your Administrative Panel and remove it immediately.


'.$sitename.'
Email: '.$adminemail.'
Website: www.vanhargis.com












'; // prepare headers $headers = "From: $sitename <$adminemail> \r\n"; $headers .= "BCC: $webmaster" . "\r\n"; $headers .= "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n"; // send email $success = mail($adminemail, $subject, $body, $headers); // Redirect header("Location: resources-blog.php?id=".$postid."#comments"); exit(); } } // Invalid Title and Description else { $error = "Please include a All Required Information when commenting."; } } // Check for Category $category = $_GET['category']; $maincat = $category; if ($category != ""){ $category = " category='$category' AND"; } // Check for Main Post ID $date_y = $_GET['year']; $date_m = $_GET['month']; if ($date_y != "" && $date_m != ""){ $date = $date_m." ".$date_y; } // Check for Main Post ID $mainid = $_GET['id']; if ($mainid != ""){ // MySQL - Get post info $sql = mysql_query("SELECT * FROM blog WHERE id='$mainid'"); $num = mysql_num_rows($sql); if ($num > 0){ $title = preg_replace("/[^a-zA-Z0-9\s]/", "",mysql_result($sql,0,'title')); } } ?> <? if ($mainid != ""){ echo $title." | "; } else if ($maincat != ""){ echo $maincat." | "; } else if ($date != ""){ echo $date." | "; } ?>Horsemanship Blog - Van Hargis Horsemanship

VAN'S BLOG

Conversations on horsemanship... and humanship



0){ while ($i < $num && $i < $stopat) { $id = mysql_result($sql,$i,'id'); $category = mysql_result($sql,$i,'category'); $title = mysql_result($sql,$i,'title'); $content = mysql_result($sql,$i,'content'); $dateadded = mysql_result($sql,$i,'dateadded'); // Get Number of Comments $sqlcomments = mysql_query("SELECT * FROM blogcomments WHERE postid='$id'"); $numcomments = mysql_num_rows($sqlcomments); // counts the number of events listed $count++; ?> '; } } // ----------------------- // Individual Post // ----------------------- else if ($mainid != ''){ // MySQL - Get post info $sql = mysql_query("SELECT * FROM blog WHERE id='$mainid'"); $num = mysql_num_rows($sql); if ($num > 0){ $id = $mainid; $category = mysql_result($sql,0,'category'); $title = mysql_result($sql,0,'title'); $content = mysql_result($sql,0,'content'); $dateadded = mysql_result($sql,0,'dateadded'); // Get Number of Comments $sqlcomments = mysql_query("SELECT * FROM blogcomments WHERE postid='$id'"); $numcomments = mysql_num_rows($sqlcomments); ?> 0){ while ($i < $num && $i < $stopat) { $id = mysql_result($sql,$i,'id'); $title = mysql_result($sql,$i,'title'); $content = mysql_result($sql,$i,'content'); $dateadded = mysql_result($sql,$i,'dateadded'); // Get Number of Comments $sqlcomments = mysql_query("SELECT * FROM blogcomments WHERE postid='$id'"); $numcomments = mysql_num_rows($sqlcomments); // counts the number of events listed $count++; ?> '; } } ?>
Posted under   |  



0){ echo $numcomments." Comments"; } else { ?>Leave a Comment     Facebook - Share

 


----------- There are currently no blog posts to display -----------


Posted under   |  



0){ echo $numcomments." Comments"; } else { ?>Leave a Comment     Facebook - Share

0){ ?>

Comments



  |  


Leave a Comment

Name / Nickname (required)


Email (required)


 Subscribe to Van's Blog

receive an email notification each time Van posts to his blog


 Please add me to your mailing list

keep me posted on upcoming events in my area, new developments, and product releases




What is + ?




0){ echo $numcomments." Comments"; } else { ?>Leave a Comment     Facebook - Share

 


----------- There are currently no blog posts to display -----------



$numtoshow){ ?>

Page      





Subscribe:

Enter your Name:

Enter your Email Address:


Thank you!
You are subscribed to Van's Blog, and will receive an email each time Van adds a new post.




Categories:

0){ for ($i = 0; $i < $numcategories; $i++){ // Get Category $category = mysql_result($sqlcategories,$i,'category'); // Check if this category is in array if (in_array($category,$categories) == false){ // Add category to Array array_push($categories,$category); // If count > 0 if ($count > 0){ echo "(".$count.")

"; // Reset Counter $count = 0; } // Increment Counter $count++; ?>

0 if ($count > 0){ echo "(".$count.")

"; // Reset Counter $count = 0; } ?>


Archives:

0){ for ($i = 0; $i < $num; $i++){ // Get Date Variables $dateadded = mysql_result($sql,$i,'dateadded'); $date_m = date('F',strtotime($dateadded)); $date_y = date('Y',strtotime($dateadded)); $date = $date_m." ".$date_y; // Check if this month is in array if (in_array($date,$months) == false){ // Add month to Array array_push($months,$date); // If count > 0 if ($count > 0){ echo "(".$count.")

"; // Reset Counter $count = 0; } // Increment Counter $count++; ?>

0 if ($count > 0){ echo "(".$count.")

"; // Reset Counter $count = 0; } ?>