Live PHP Comment System using Ajax Jquery
ฝัง
- เผยแพร่เมื่อ 28 ม.ค. 2025
- How to make comment system using PHP with Ajax, Jquery, Bootstrap and Mysql. How to create Nested Comment System in PHP with Ajax. How to developed Live comment system using Ajax JQuery with PHP Mysql.
For Source Code & Online Live Demo - www.webslesson....
how to set email notification if someone has commented on the post?
This a good basis for a good comment system, just needed some more columns in the table and some twitches in your code and voilá
Thanx a lot for sharing
how do you make it not go thru the box and have it add lines?
good job, sir john smith, remember to answer the questions of the subscribers
Storing values in the client side is not recommended they can get manipulated in developer console and sent to the server..
Really Good and Hard Working with best solution of comment...Thanks
somehome its not working for me ... :(
what did you give the table name in SQL section? plus it would be good if you would lead us from phpmyadmin through step by step.
you do very good tutorials and I was able to progress in my projects very very very quickly
Sir please help me . It says allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in fetch_comment.php on line 40
Basically it is the code
$statement->execute();
Did you ever figure it out?
I want to do it for each ID, how to do that ? I want to all pages(posts) have each comment box.
If i want to show comments with pagination than how it will work ?
please suggest me ....
Great channel and tutorial ! Ajax still seems a little confusing to me, so can you please expand this tutorial and teach us how to bring down the comment form under a specific comment when we click the reply button?
you can use jquery to show the comment area instead of focus
best
ever best
@@macpaulitepu both are have different mean
It's working perfectly.
Thank you Weblesson.
How Can I get an independent system blog if i've more than two articles
Explain
how to connect this
comment table news table
What version of php are you using?
how to handle all the comments if the users are adding comments using different browsers ?
ajax is not responding i have to refresh the page for the comments to load
@janith umayanga Hi. The script show all comments for all posts. How can I list only comment for a single post?
@@worksfatherwemagic3152 add a condition in your db query 'where id=:id'
Hello, it's working perfectly, to use it on my online website I must to modify something? Thanks
His tutorial is really nice but what if we i have several other post and we want each post to have it own comment
add an extra condition to the query so where id = :id
I meet the error ,same row show on multiple times , Please solve this problem
how did he make the comment show without refreshing the page?
He used Javascript, Jquery and Ajax.
Ajax not working, comment added in db only.. but not fetching.. pls help
Thank you so much. Very helpful tutorial.
How to write this script in codeigniter
I have three table
1) comments
2) member
3) group.
I want to add comments and display it using ajax only for that member in only that group from where the parent comments is added.
how to apply on codeigniter please guide me
You are the best, Let God give you long life. bless
how i can do it with MVC ????
can we do it using jsp JavaScript
Great tutorial, but I have a question, how to change the code if you wanna use PHP to connect to database?
paste the upper code in notepad and save it with extension .php and your work is done
Try using OOP whenever possible.
Class DbConnect ()
{
Protected $con = New MySqli....etc.
//If connected
Return $con
Else
//Return false
}
Good tutorial,, I can learn many more, thanks
up
can anyone verify if this is still valid in 2020? was following some tutorials and turned out they were not compatible with modern browsers (they were anywhere between 2013-2016). would hate to follow along again and find out when i get near the end that some piece of the code is incompatible...
Great tutorial Sir, I have a question how can i add some functions like inserting a delete and edit button from the replies section? Thank you I hope you answer my question
u'll need session for that bro, if tht comment without registration
great tutorial
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 16384 bytes)
I got this error after adding it to my website
Downloaded source code but not working
i dont know why the comment doesnt display i did everything said in the video HELP!!!
Thank you very much for your tutorial sir, it's work
Thanks brother for the tutorial 😊
Hello, great video! What if the users are basicly my website’s members? Membership controls by php, using mysql database. Is there a system like, if a member wants to write a comment, his name automatically filled, on the other hand if a non-member user wants to write comment he can type his nickname ? thank you so far
store user infomation in $_SESSION (php) when user is logged in. And do logic in your view page..
Hint. CodeIgnter + IonAuth + this video info.
i want code entirely , the data is not entering into database
THAT'S THE CODE ENTIRELY
CHECK YOUR INSERT STATEMENT
can make real time comment?
A good one. Just saved me a lot.
good stuff - easy and works great! thankyou.
bro can you make pagination for this comment section i am trying to do but i am getting error
Paginate based on the parent_id count
the code doesn't seem to be working in mozilla firefox..
UPDATE
AJAX call is not working. Comment is being added only after page refresh. Help, please
I am facing the same problem can anybody suggest something?
It helped me a lot. Thank you very much!
I too convey my thanks.
I would like more videos please.
Great tutorial
Pls give me a tutorial for free SMS gateway in php... And what sms gateway is best one...
thank you sir this video is very helpful
Thanks for the video.
Please how can I use the code for multiple webpage with different id?👈
there is a bug second reply to comment displayed as reply to reply
Thanks you so much sir for a great tuts..
This tutorial seem older than the date you published it out,you use bootstrap 3.3.6 and why did you use bootstrap cdn but not download it?
YOU CAN USE D CDN IF YOU DONT HAVE IT ON YOUR SYSTEM
AND YOU CAN ALSO USE IT IF DOWNLOADED AS LONG AS YOU DON'T CHAMGE D FILE NAME AND IT'S INCLUDED IN THE DIRECTORY
Good work sir, but how have we get hide button
Super useful! Is it possible to withheld comments for approval ( that would obviously be loosing the live comments purpose but i still need to send some comments to admin for review before to publishing them on live page) Thank you very much
SignalSource by
SignalSource
Gud work!! Amazing
Sir wiil you please make a multilevel real time commenting system with laravel ajax.... thanks
Request on Fiverr?
thanks you. very good this tutorial
Great tutorial.Thank you!
yhh
very good Sir, thank a lot!
sir this is good tutorial..the index function are good...but something went wrong in my database..i cannot send the comment on the database..??what is the problem? is it in the query? and also why is it u use (:)this in declaring the VALUES instead of ($)??(:parent_comment_id, :comment,:comment_sender_name) cause the comments and the commen_sender_name are not save on my database?? sir pls help me..im just only a begginner..so pls help me sir..thank u..
because he used PDO
nice you made my work easy
Thank u for this awesome video
multilungual site please please
Thank you, it get works, Can you teach us "how to get(collect) email or phone Numbers from web"
You're awesome. Thanks a lot!
It's very help full.
Muchas gracias.
Thank you very much
How if there 100 comment reply?
I'm sure you could limit that. before insert
Good Tutorail And thanks alot
thx for ur tutorial
sir plz tell me how to add smily faces in comment nd star rating system
the tutorial of star rating system is on the video list , check it
Helped me a lot
Thanks
Thanks sir, Brilliant
next tutorial "multilanguage site " in PHP ??? it will be great help THANK YOU***********************
I'm using CodeIgnter . Upon selecting language set a session variable the refresh the page. The controller loads language files based on $this->session->userdata('userlang');
Great tutorial! Thank you ;)
Fantastic men!!!
awesome
Thanks a lot
Thank you
Thanks
Awesome!!!
great
hi
thank
nice
Ahhh your voice is clearer lol thank you ;)
Good
Hello Sir Programmer. Is it easy to code seen and not seen functions like facebook? How can we do this? :) just like when you click the button, it represents to the admin that you have seen and read the message. Thanks. Look forward for your reply. God bless :)
nyc
testing
testing
You haven't shown its database structure.. But by the way video was very nice and helpful..
1:41 there is the structure
CREATE TABLE `testing`.`test` ( `comment_id` INT(11) NOT NULL , `parent_comment_id` INT(11) NOT NULL , `comment` VARCHAR(200) NOT NULL , `date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE = InnoDB; is the sql
please send me source code !
www.webslesson.info/2017/12/comments-system-using-php-and-ajax.html
Ok, what the hell is with that voice?
sorry ..when I click submit nothing happens? what is the problem?
IT DOESN'T ECHO COMMENT ADDED??
hello sir can you give me the source code file