From dfa8fcf5a4bd2b6aa3a10868b816d6a95ef2b59e Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Thu, 29 May 2003 14:05:37 +0000 Subject: [PATCH] Major comments overhaul: decreased # of queries, combined *backs and comments, and made ezSQL mod. git-svn-id: https://develop.svn.wordpress.org/trunk@115 602fd350-edb4-49c9-b593-d223f7449a82 --- b2comments.php | 51 +++++++++++++++++++++----------------------------- 1 file changed, 21 insertions(+), 30 deletions(-) diff --git a/b2comments.php b/b2comments.php index c6d27de703..d4152699d8 100644 --- a/b2comments.php +++ b/b2comments.php @@ -1,46 +1,42 @@ - %' AND comment_content NOT LIKE '%%' ORDER BY comment_date"; - $resultc = mysql_query($queryc); - if ($resultc) { - ?> + $comments = $wpdb->get_results("SELECT * FROM $tablecomments WHERE comment_post_ID = $id ORDER BY comment_date"); +?>

Comments

+

The URL to TrackBack this entry is:

+

+
    - comment_ID); ?> + -
  1. -

    By {$commentdata["comment_author"]} -QQQ; -} else { - echo $commentdata["comment_author"]; -} ?> @

    +

    by @

  2. - - - +
  3. No comments yet.
  4. - - +

Leave a Comment

Line and paragraph breaks automatic, website trumps email, HTML allowed:

-

@@ -52,16 +48,16 @@ QQQ;

- +

- +

- +

@@ -69,16 +65,11 @@ QQQ;

-
-
Go back.
\ No newline at end of file