GB_001 Posted January 10, 2008 Share Posted January 10, 2008 Is it possible to create a script where X is changed in the database the script recognizes it and refreshes? If so, how would I go about doing it. Quote Link to comment https://forums.phpfreaks.com/topic/85307-solved-listening-for-database-changes/ Share on other sites More sharing options...
nikefido Posted January 10, 2008 Share Posted January 10, 2008 not in the exact way you are thinking, unfortunately. php is not an event-driven code like javascript or actionscript Your best bet is to create a function that periodically checks the database. (other users - is that a use for a cron job?) Quote Link to comment https://forums.phpfreaks.com/topic/85307-solved-listening-for-database-changes/#findComment-435258 Share on other sites More sharing options...
Ken2k7 Posted January 10, 2008 Share Posted January 10, 2008 AJAX? Quote Link to comment https://forums.phpfreaks.com/topic/85307-solved-listening-for-database-changes/#findComment-435264 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.