Using Meta Boxes in a Custom Page Template

By default WordPress doesn’t load admin classes/function definitions in the front end of the site. You need to explicitly require the files.

As far as I remember requiring wp-admin/includes/admin.php would get you most of typical stuff.

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