Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

comment_info

<?php //grab the data
$comment_info = $wpdb->get_results("SELECT DISTINCT comment_author, comment_author_email, comment_author_IP 
	FROM (SELECT DISTINCT comment_author, comment_author_email, comment_author_IP 
	FROM wp_comments 
	WHERE comment_post_ID = 1
	) AS WHATEVER"); 
// display the results
echo '<ul>';
foreach($comment_info as $info) { 
	echo '<li><strong>'. $info->comment_author .'</strong> - '. $info->comment_author_email .' - <small>'. $info->comment_author_IP .'</small></li>'; 
}
echo '</ul>';
?>
Source by digwp.com #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
4+1 =