Title: Insert and display data in database from WordPress page
Last modified: 21 maart 2020

---

# Insert and display data in database from WordPress page

 *  [gideon4324](https://nl.wordpress.org/support/users/gideon4324/)
 * (@gideon4324)
 * [6 jaren, 6 maanden geleden](https://nl.wordpress.org/support/topic/insert-and-display-data-in-custom-database/)
 * This is the first question I’m asking here, so I’m open to any feedback on how
   to clarify my problem/question!
 * I have created a small javascript game on a wordpress page with “custom html”.
   I’d like to save the highscores in a table under the game canvas that does not
   reset when one reloads the page. In an attempt to achieve that I have created
   a table with columns “name” and “score” in a MySQL database (where the wordpress
   tables of my website are as well).
 * When the game is over I’d like to insert the highscore into the database table
   and retreive the highscores from the database and display them in a highscore
   list.
 * I have tried using php and sql queries in the “custom html” block, but it does
   not seem to work. I think I have insufficient knowledge on how to run php scripts
   in WordPress. I have read about “wpdb” but I could not make it work with that
   either. In addition I have searched for plugins that could do the trick, but 
   no success so far.
 * If anyone has an idea on how to create the highscore list I have in mind I’d 
   love to hear about it, because so far my hours of research and trial/error have
   had no succes!
    -  Dit onderwerp is gewijzigd 6 jaren, 6 maanden geleden door [gideon4324](https://nl.wordpress.org/support/users/gideon4324/).

1 reactie aan het bekijken (van in totaal 1)

 *  [WP Provider](https://nl.wordpress.org/support/users/wpprovider/)
 * (@wpprovider)
 * [6 jaren, 6 maanden geleden](https://nl.wordpress.org/support/topic/insert-and-display-data-in-custom-database/#post-12168595)
 * Hi,
 * You are asking your question on the dutch WordPress forum.
 * I am sure if you place your question here: [https://wordpress.org/support/forum/wp-advanced/](https://wordpress.org/support/forum/wp-advanced/)
   someone will have a solution for what you are trying to achieve.

1 reactie aan het bekijken (van in totaal 1)

 Het onderwerp ‘Insert and display data in database from WordPress page’ is gesloten
voor nieuwe reacties.

## Tags

 * [database](https://nl.wordpress.org/support/topic-tag/database/)
 * [display](https://nl.wordpress.org/support/topic-tag/display/)
 * [display data](https://nl.wordpress.org/support/topic-tag/display-data/)
 * [insert](https://nl.wordpress.org/support/topic-tag/insert/)
 * [php](https://nl.wordpress.org/support/topic-tag/php/)
 * [sql](https://nl.wordpress.org/support/topic-tag/sql/)

 * In: [Code oplossingen gezocht](https://nl.wordpress.org/support/forum/code-oplossingen/)
 * 1 reactie
 * 2 deelnemers
 * Laatste antwoord van: [WP Provider](https://nl.wordpress.org/support/users/wpprovider/)
 * Laatste activiteit: [6 jaren, 6 maanden geleden](https://nl.wordpress.org/support/topic/insert-and-display-data-in-custom-database/#post-12168595)
 * Status: onopgelost

## Onderwerpen

### Meest populaire onderwerpen

### Onderwerpen zonder reacties

### Non-support onderwerpen

### Opgeloste onderwerpen

### Onopgeloste onderwerpen

### Alle onderwerpen
