chat room | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

chat room

i want to make a chat room, my problem is for example a person send text, then the text will be insert at $textchat and it will display at table(where the table show all the chat), if i do like that the $textchat can only hold 1 data where the chat has many data. so i want it store many data and show the result like online chat.

18th Aug 2016, 3:15 PM
Hanizam Onesevensix
Hanizam Onesevensix - avatar
5 Answers
0
use html to handle user chat input and php file handling to create a .txt file and write data into it for new chats and just reading and writing data for existing chats.
18th Aug 2016, 10:39 PM
shadow1435
0
emm, any more idea without using JavaScript?
18th Aug 2016, 10:59 PM
Hanizam Onesevensix
Hanizam Onesevensix - avatar
0
use html for submitting form with user input catch it with php and use file handling in php it's very easy
18th Aug 2016, 11:05 PM
shadow1435
0
yes i already using php as database, but it required much data, also the page need to be refresh like 5 to 20 second where the problem when user insert text and it already 5 to 20 second the page will refresh and empty the box(problem using php)
19th Aug 2016, 2:11 AM
Hanizam Onesevensix
Hanizam Onesevensix - avatar
0
can you post your code I'll help you out
19th Aug 2016, 2:57 AM
shadow1435