Loading scripts on a single page plants the script in the footer

wp_enqueue_script accepts 5 parameters. The fifth one is $in_footer. If that parameter is set to true the script will load in the footer.

If it is set to false it will load in the head, unless a dependency (like jQuery in your code) is set to show up in the footer.

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