Title: Make another database connection
Last modified: August 19, 2016

---

# Make another database connection

 *  [proevo1](https://wordpress.org/support/users/proevo1/)
 * (@proevo1)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/make-another-database-connection/)
 * Hello,
 * I have done a lot of searching and reading regarding this issue I am having..
 * Basically, I am trying to establish a new database connection on a wordpress 
   page in order to grab content from my own CMS.
 * `<? require_once ('../path/to/database/connect/scipt/connect.php'); // Connect
   to the db. ?>`
 * (Above) So I link to my db connect script (which works as it is working on other
   pages in my site)
 * `<?php $query = "SELECT link, art_id, date_format(date_time, ' %b ') as month,
   date_format(date_time, ' %d ') as day, title, summary, content FROM nav LEFT 
   JOIN news USING (nav_id) WHERE active = 'yes' ORDER BY date_time DESC LIMIT 0,5";....
   etc etc ?>`
 * (Above) The query of the database etc…
 * However, It seems as though it is trying to query the wordpress database ($wpdb).
 * If anyone could help, I would be very appreciative.
 * Many thanks,
 * James

The topic ‘Make another database connection’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [proevo1](https://wordpress.org/support/users/proevo1/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/make-another-database-connection/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
