PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hello, I have a chat that i'm making, going along very well. (http://www.aataclan.tk click on =AATA= webchat on the left) Anyway, I have the current version to get information from a database of the users online and posts available. What script would allow me to only have the page refresh (echo "<meta http-equiv=\"Refresh\" content=\"0\">"; ) when the data in the database changes? Thanks
Well, right now it refreshes the page every 5 seconds, which is really annoying because both frames click every refresh. Instead, there isnt any way to only have it refresh the page when the data changes?
you should check out the chat...but it still refreshes the frames with the users and posts, which is not only annoying, but if someone is reading the posts at the bottom, it refreshes and moves them up to the newest one. Its easier to understand if you check the site
lol, i mean, if people are reading older posts (at the bottom) every 5 seconds it refreshes and puts them to the top (new posts). There isnt any way to get it to only refresh when the database data changes?