elhelaly1999 Posted December 21, 2008 Share Posted December 21, 2008 Hi every body I want to make action when new row added into database without doing refresh or click or any action from user , Just when new record added into database I can do action , Can I ? if I can how ? Quote Link to comment https://forums.phpfreaks.com/topic/137894-how-can-i-make-my-page-feel-with-database/ Share on other sites More sharing options...
elhelaly1999 Posted December 21, 2008 Author Share Posted December 21, 2008 I want anyone answer , let me know why ? Is my question seems wrong or not understanded ? Quote Link to comment https://forums.phpfreaks.com/topic/137894-how-can-i-make-my-page-feel-with-database/#findComment-720772 Share on other sites More sharing options...
Philip Posted December 23, 2008 Share Posted December 23, 2008 Periodically check the database to see if it updates. Your ajax script would have to do that at timed intervals - there isn't a way for the database to tell the user that it was updated. Example: Person A loads the 'check database' script Person A's page automatically checks the database - nothing new, so do nothing Person B adds a new row Person A's page automatically checks the database - one new row, let user know. ... Person A's page automatically checks the database - nothing new again, do nothing ... Quote Link to comment https://forums.phpfreaks.com/topic/137894-how-can-i-make-my-page-feel-with-database/#findComment-721948 Share on other sites More sharing options...
elhelaly1999 Posted December 23, 2008 Author Share Posted December 23, 2008 thanks Quote Link to comment https://forums.phpfreaks.com/topic/137894-how-can-i-make-my-page-feel-with-database/#findComment-722111 Share on other sites More sharing options...
Flames Posted December 26, 2008 Share Posted December 26, 2008 I have a similar problem for a chat system, how can i make a file that can tell if theres something new? Quote Link to comment https://forums.phpfreaks.com/topic/137894-how-can-i-make-my-page-feel-with-database/#findComment-723964 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.