Title: switch between datebase
Last modified: August 30, 2016

---

# switch between datebase

 *  [Kai Niermann](https://wordpress.org/support/users/joloshop/)
 * (@joloshop)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/switch-between-datebase/)
 * hi there I am trying to switch between two datbase. I am using
 *     ```
       $wpdb->select('databasename');
       wp_cache_flush();
       ```
   
 * however I am not getting any information and the theme is gone and only the text
   shows on this site.
 * So I am stuck rigt now

Viewing 2 replies - 16 through 17 (of 17 total)

[←](https://wordpress.org/support/topic/switch-between-datebase/?output_format=md)
[1](https://wordpress.org/support/topic/switch-between-datebase/?output_format=md)
2

 *  Thread Starter [Kai Niermann](https://wordpress.org/support/users/joloshop/)
 * (@joloshop)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/switch-between-datebase/page/2/#post-6883273)
 * Thank you bcworkz again,
 * i just wanted to make sure if i have to add the $ infront of all database informations.
 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/switch-between-datebase/page/2/#post-6883274)
 * The `$` is used to denote PHP variables. Quotes `' '` denote PHP string literals.
   You can pass either type to most PHP functions or to class constructors. To use
   a variable, it first needs to have a value (such as a string literal) assigned
   to it. For example, you could do this:
    `php_function('string literal');`
 * Or do this, which results in the same thing:
 *     ```
       $php_variable = 'string literal';
       php_function( $php_variable );
       ```
   
 * Or for functions or constructors that take multiple parameters, you can pass 
   a mix of variables and strings, whatever is most expedient for your situation.

Viewing 2 replies - 16 through 17 (of 17 total)

[←](https://wordpress.org/support/topic/switch-between-datebase/?output_format=md)
[1](https://wordpress.org/support/topic/switch-between-datebase/?output_format=md)
2

The topic ‘switch between datebase’ is closed to new replies.

## Tags

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

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 17 replies
 * 3 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/switch-between-datebase/page/2/#post-6883274)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
