Using conditional staements to load plugins

figured it out… The main problem with the scripts so just wrapped them in this for each plugin:

function my_enqueue_javascript() {
    if (is_page('page')) {
        //Include Javascript library
        wp_enqueue_script('', plugins_url( '/js/ajax.js' , __FILE__ ) , array( 'jquery' ));
        // including ajax script in the plugin Myajax.ajaxurl
        wp_localize_script( '', 'MyAjax', array( 'ajaxurl' => admin_url( 'admin-ajax.php')));
    }
}
add_action( 'wp_print_scripts', 'my_enqueue_javascript', 100 );

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)