apw Posted April 17, 2013 Share Posted April 17, 2013 Hello Hello, when a member logins into my game, I'm pulling information from my database and this information, depending on what actions the member does, either increases or decrease certin information in the database, this in turn is displayed to the member. However, in order for this information to be displayed, the member must refresh the screen. Is there ANY way I can display the new, current information to the member without them constantly hitting the refresh button? The member usually sits on one section of the screen but I am aware that if they leave that screen and go to something else and return the new information will appear, but what if the member just sits on one screen, without hitting the refresh can I still display the new updated information to them? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/277084-keeping-data-from-db-current/ Share on other sites More sharing options...
trq Posted April 17, 2013 Share Posted April 17, 2013 Any interaction like that needs to be done client side. Not with PHP. Have you heard of the term Ajax? That would be a good place to start. Quote Link to comment https://forums.phpfreaks.com/topic/277084-keeping-data-from-db-current/#findComment-1425491 Share on other sites More sharing options...
seandisanti Posted April 17, 2013 Share Posted April 17, 2013 W3schools has some primers on Ajax to help also. http://www.w3schools.com/ajax/default.asp Quote Link to comment https://forums.phpfreaks.com/topic/277084-keeping-data-from-db-current/#findComment-1425494 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.