Title: Refresh Database Output
Last modified: August 19, 2016

---

# Refresh Database Output

 *  [MrMister](https://wordpress.org/support/users/mrmister/)
 * (@mrmister)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/refresh-database-output/)
 * 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.

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)
 * [output](https://wordpress.org/support/topic-tag/output/)

 * 0 replies
 * 1 participant
 * Last reply from: [MrMister](https://wordpress.org/support/users/mrmister/)
 * Last activity: [15 years, 6 months ago](https://wordpress.org/support/topic/refresh-database-output/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
