/* Call this class on each page you want to display comments */
	require_once 'classes/Comments.class.php';
	
	/* Article ID which shows the comments */
	$post_id = 2;
	
	/* Level of hierarchy comments. Infinit if declared NULL */
	$level = 3;
	
	/* Number of Supercomments (level 0) to display per page */
	$supercomments_per_page = 2;
	
	/* Moderate comments? */
	$moderation = false;
	
	/* DB config */
	$db_config = array("db_name" => '',
					   "db_user" => '',
					   "db_pass" => '',
					   "db_host" => '' );
	
	/* Create the instance of the class */
	$comments = new Comments($post_id, $level, $supercomments_per_page, $moderation, $db_config);
	
	/* Print comments */
	echo $comments->getComments();
	

Warning: mysql_connect(): Unknown MySQL server host '192.168.0.590' (3) in /www/test-pandora/htdocs/multi-comments/classes/DB.class.php on line 21

Warning: mysql_real_escape_string(): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /www/test-pandora/htdocs/multi-comments/classes/Reply.class.php on line 11

Warning: mysql_real_escape_string(): A link to the server could not be established in /www/test-pandora/htdocs/multi-comments/classes/Reply.class.php on line 11
No comments found

Your Response