belleyBoy
HERE;
// Getting the authors name
preg_match('/rel="nofollow">((.){1,})<\/a>/',
$author_str,
$author_ar);
$author_str = addslashes($author_ar[1]);
// Formatting the date properly
$BlogCommentDateTime = '6/12/08, 4:57 PM';
$BlogCommentDateTime_ar = explode(' ', $BlogCommentDateTime);
if($BlogCommentDateTime_ar[1] == 'PM') $BlogCommentDateTime_ar['hour'][0] += 12;
$BlogCommentDateTime_ar['day'] = explode('/', $BlogCommentDateTime_ar[0]);
$BlogCommentDateTime_ar['hour'] = explode(':', $BlogCommentDateTime_ar[1]);
$BlogCommentDateTime_ar['mysql'] = $BlogCommentDateTime_ar['day'][2].'-'.$BlogCommentDateTime_ar['day'][1].'-'.$BlogCommentDateTime_ar['day'][0].' '.$BlogCommentDateTime_ar['hour'][0].':'.$BlogCommentDateTime_ar['hour'][1].':'.$BlogCommentDateTime_ar['hour'][2];
$BlogCommentDateTime = $BlogCommentDateTime_ar['mysql'];
// Adding the comment to the database
$body_str = addslashes($body_str);
$DB->query("INSERT INTO `{$table_prepend}evo_comments` ".
"SET `comment_type` = 'comment', ".
"`comment_status` = 'published', ".
"`comment_nofollow` = '1', ".
"`comment_date` = '{$BlogCommentDateTime}', ".
"`comment_author` = '{$author_str}', ".
"`comment_content` = '{$body_str}', ".
"`comment_post_ID` = $entry_id");
// Getting the content of this entries body
$body_str = <<Labels: Fun
HERE; $body_count = strlen($body_str); // Getting the name of this entries body $name_str = <<