added single quotes around post id in query

git-svn-id: https://develop.svn.wordpress.org/trunk@719 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Alex King 2004-01-05 03:06:21 +00:00
parent 58f4c191c3
commit dec1d3aa86
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@
$comment_author_email = (isset($HTTP_COOKIE_VARS['comment_author_email_'.$cookiehash])) ? trim($HTTP_COOKIE_VARS['comment_author_email_'.$cookiehash]) : '';
$comment_author_url = (isset($HTTP_COOKIE_VARS['comment_author_url_'.$cookiehash])) ? trim($HTTP_COOKIE_VARS['comment_author_url_'.$cookiehash]) : '';
$comments = $wpdb->get_results("SELECT * FROM $tablecomments WHERE comment_post_ID = $id AND comment_approved = '1' ORDER BY comment_date");
$comments = $wpdb->get_results("SELECT * FROM $tablecomments WHERE comment_post_ID = '$id' AND comment_approved = '1' ORDER BY comment_date");
?>
<!-- You can start editing here. -->