Title: php connect to external database error
Last modified: August 21, 2016

---

# php connect to external database error

 *  [trailweb](https://wordpress.org/support/users/trailweb/)
 * (@trailweb)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/php-connect-to-external-database-error-1/)
 * I am unable to connect to my external database and receive the following error:
   
   Fatal error: Call to undefined function pg_connect() in /home/point4/public_html/
   wp-content/plugins/wp-exec-php/wp-exec-php.php(652) : eval()’d code on line 6
 * Any suggestions on what I need to change?
 * Thanks!
 * [http://wordpress.org/plugins/wp-exec-php/](http://wordpress.org/plugins/wp-exec-php/)

The topic ‘php connect to external database error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-exec-php.svg)
 * [WP exec PHP](https://wordpress.org/plugins/wp-exec-php/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-exec-php/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-exec-php/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-exec-php/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-exec-php/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-exec-php/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [trailweb](https://wordpress.org/support/users/trailweb/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/php-connect-to-external-database-error-1/)
 * Status: not resolved