I am new to coding with php
and SQL
I know html, css and js
I want to code for a simple chatroom web page
I have written the sign in
and sign up
part and I have saved some user accounts information in my database
but my problem is how to refresh only a part of web page
using only php
.
I have a div
in my page for showing messages that are saved in database
and I want its content to be updated when a new message is gone to the database
but I don't want the whole page to be refreshed.
Please Help me wiith this.
To refresh only part of a webpage you can use AJAX. It is based on JavaScript and lets you update certain parts of a webpage without reloading it. Here you can learn more: https://www.w3schools.com/js/js_ajax_intro.asp