-
Notifications
You must be signed in to change notification settings - Fork 0
Home
srinath madusanka edited this page Jan 23, 2015
·
1 revision
Welcome to the nested-comment-master-dev wiki!
This is Simple php Class for creating nested comments.you can create nested comments easily.
<!-- include nasted comment class -->
`<?php include('kw_nestedcomment.php');
$mycomment=new nestedcomment();
$user=$_POST['user'];
$comment=$_POST['comment'];
$mycomment->addcomment($user,$comment); //user name and your comment
?>
`
';`
`echo '';`
`echo '
';`
`}`
`else{`
`echo ''.$value['comment'].'
reply
';`
`echo '
';`
`echo 'Name:
';` `echo '';` `echo 'Comment
<textarea name="rcomment" id="rcomment" cols="70" rows="5"></textarea>
';` `echo '';` `echo '';`
`echo '
';`
`}`
`}`
`?>`
'.$value['comment'].'
@'.$value['commented_user'].'
<!-- end display comments -->