• Hi guys,

    I’m currently writing my own first plugin, at least I’m trying to get something to work to play around with the database to see how it works. I’ve come up with a little script that outputs categories from the database and allows the user to add his own categories with a name and a description via a form. This all works perfectly well, however I don’t seem to be able to get my head around the fact that the last category the user adds is not being displayed in the listing until the whole page is being refreshed. The script basically has two functions: The first one that is called outputs all categories from the database, the second function adds the form and allows the user to add categories. After a category is added I’m able to output a message stating that it has worked and everything, but the function above with the category listing doesn’t show the new category until I refresh everything.

    Does anyone have any suggestions what to look for or how I could manage to do just that?

    Greetings,
    MrMister

  • The topic ‘Refresh Database Output’ is closed to new replies.