views How to load javascript on custom page template?

Use a conditional wrapper in the above callback, e.g.:

function temp_enqueue_scripts() {
    if ( ! is_admin() ) {
        if ( 'custom-page.php' == get_page_template() ) {
            wp_enqueue_script( 'jquery' );
        }
    }
}
add_action( 'wp_enqueue_scripts', 'temp_enqueue_scripts' );

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