mysql_select_db example


    public function select( $db$dbh = null ) {
        if ( is_null( $dbh ) ) {
            $dbh = $this->dbh;
        }

        if ( $this->use_mysqli ) {
            $success = mysqli_select_db( $dbh$db );
        } else {
            $success = mysql_select_db( $db$dbh );
        }
        if ( ! $success ) {
            $this->ready = false;
            if ( ! did_action( 'template_redirect' ) ) {
                wp_load_translations_early();

                $message = '<h1>' . __( 'Cannot select database' ) . "</h1>\n";

                $message .= '<p>' . sprintf(
                    /* translators: %s: Database name. */
                    __( 'The database server could be connected to (which means your username and password is okay) but the %s database could not be selected.' ),
                    
Home | Imprint | This part of the site doesn't use cookies.