stefanbc
2/21/2014 - 7:41 AM

Custom database connection

Custom database connection

<?php
  // Create a new database connection
  $customdb = new wpdb(USERNAME, PASSWORD, DATABASE, 'localhost');
  $customdb->show_errors();
?>