• 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)
  • Thread Starter Kai Niermann

    (@joloshop)

    Thank you bcworkz again,

    i just wanted to make sure if i have to add the $ infront of all database informations.

    Moderator bcworkz

    (@bcworkz)

    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)

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