HektoR Posted January 5, 2009 Share Posted January 5, 2009 hello everyone ... happy new year ! i want to make script, which reload then , when db update. ex: when i insert new query in db it must reload himself . Link to comment https://forums.phpfreaks.com/topic/139508-auto-reload-when-db-will-update/ Share on other sites More sharing options...
gevans Posted January 5, 2009 Share Posted January 5, 2009 Can you explain a bit further? Link to comment https://forums.phpfreaks.com/topic/139508-auto-reload-when-db-will-update/#findComment-729806 Share on other sites More sharing options...
dezkit Posted January 5, 2009 Share Posted January 5, 2009 He wants so that after he puts data in a database, the page with the data will auto-update. This can be done with AJAX. I too want to know how it is done. Link to comment https://forums.phpfreaks.com/topic/139508-auto-reload-when-db-will-update/#findComment-729823 Share on other sites More sharing options...
HektoR Posted January 5, 2009 Author Share Posted January 5, 2009 ok, i'll try ..... so , for example : i have 2 php file. 1.insert.php 2.check.php with insert .php i can insert query in my database. but with check.php i want to check my database, but how, i want to check.php reload when database is updated is it possible ? Link to comment https://forums.phpfreaks.com/topic/139508-auto-reload-when-db-will-update/#findComment-729827 Share on other sites More sharing options...
gevans Posted January 5, 2009 Share Posted January 5, 2009 after you run insert.php redirect to check.php and it will get your new data using your sql query Link to comment https://forums.phpfreaks.com/topic/139508-auto-reload-when-db-will-update/#findComment-729831 Share on other sites More sharing options...
HektoR Posted January 5, 2009 Author Share Posted January 5, 2009 no no no. i must insert query with other computer. and check.php use another computer Link to comment https://forums.phpfreaks.com/topic/139508-auto-reload-when-db-will-update/#findComment-729838 Share on other sites More sharing options...
gevans Posted January 5, 2009 Share Posted January 5, 2009 In which case, you in the wrong forum. You want to be looking into javascript and ajax Use javascript to set a request every 10seconds for example, checking the database for updates. If it's been changed update the page Link to comment https://forums.phpfreaks.com/topic/139508-auto-reload-when-db-will-update/#findComment-729845 Share on other sites More sharing options...
HektoR Posted January 5, 2009 Author Share Posted January 5, 2009 and how to make this? Link to comment https://forums.phpfreaks.com/topic/139508-auto-reload-when-db-will-update/#findComment-729847 Share on other sites More sharing options...
gevans Posted January 5, 2009 Share Posted January 5, 2009 This is a php forum, try re-posting with more detail in the ajax forum Link to comment https://forums.phpfreaks.com/topic/139508-auto-reload-when-db-will-update/#findComment-729848 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.