Pastebin

Paste #233:

< previous paste - next paste>

Pasted by tdn

Download View as text

/* Get comments for an article */
function get_comments_for_article($article_id) {
  $q = prepare_statement("SELECT AC.body, AC.comment_id, AC.date_created, AC.sender_email, AC.sender_ip, AC.sender_name, AC.sender_website, AC.title
FROM article_comment AC
WHERE AC.article_id = %s
  AND AC.visibility > 0
ORDER BY AC.date_created ASC", $article_id);
	return exec_statement($q);

}

New Paste


Do not write anything in this field if you're a human.

Go to most recent paste.