Title: Use custom database data
Last modified: August 20, 2016

---

# Use custom database data

 *  [pokiekokie](https://wordpress.org/support/users/pokiekokie/)
 * (@pokiekokie)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/use-custom-database-data/)
 * Hello,
 * i’ve been using WordPress for a while now, and i can do almost everything i want.
   Except, now i need to put data in a database and use it. I’m building a website
   that is displaying the results of soccermatches. In the database the matches 
   and the results will be stored. An SQL query is needed to display the right information
   on the website. Can this be achieved with WordPress or do i have to use an other
   cms or do i have to learn a php-framework, to build a custom dynamic website?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Curtiss Grymala](https://wordpress.org/support/users/cgrymala/)
 * (@cgrymala)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/use-custom-database-data/#post-2138115)
 * You can do this, as long as you understand how MySQL and PHP work.
 * Are you sure you need to put the data in another database, or would another table
   in the database you’re using for WordPress be acceptable? If you can keep it 
   in the same database as WordPress, things will be a little bit easier, because
   you can continue to use the [$wpdb variable/class](http://codex.wordpress.org/Function_Reference/wpdb_Class),
   and there won’t be any confusion as to which database connection is being used
   at any point in time.
 *  Thread Starter [pokiekokie](https://wordpress.org/support/users/pokiekokie/)
 * (@pokiekokie)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/use-custom-database-data/#post-2138150)
 * Thank you for your answer! Another Table would be sufficient. I have looked up
   the method/class you were pointing too and it seems exactly what i need!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Use custom database data’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [pokiekokie](https://wordpress.org/support/users/pokiekokie/)
 * Last activity: [14 years, 12 months ago](https://wordpress.org/support/topic/use-custom-database-data/#post-2138150)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
