Chat.php not working

So I was using my website and my chat.php thing wasn’t working.
The system was when you submitted a message, it would go to a table in a MySQL server. then, on somebody elses client, when they open the page, it loops through every single message until it finds one that is for their username then it shows up in a table. This shouldnt be that inefficient and shouldn’t put too much strain on the server.

Chat is not allowed on free hosting


That part is inefficient. You should use a WHERE statement instead.

Something like that is allowed, although you will have to name the file something else.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.