Skip to main content
Inspiring
Oct 15, 2014 3:47 PM UTC
Question

How do I refresh a page after a database update?

I have a page where I perform a database update and then redirect the page back to itself.

Even though the database is updated correctly and the page is redirected, it is not refreshing the page so I am not able to see the changes made to the database.

How do I make this happen?

    This topic is closed to new replies. Start a new post to keep the conversation going.

    2 replies

    BKBK
    Community Expert
    Community Expert
    Oct 17, 2014 3:28 PM UTC

    It will make for an easier discussion if you show us the code that does the redirection.

    Translate
    WolfShade
    Legend
    Oct 17, 2014 12:53 PM UTC

    I think the most common way is to use AJaX to query the database and refresh the DOM with the new data.

    V/r,

    ^_^

    Translate