How to use global category code

That’s actually a snippet I wrote a while back, which has since been bettered with a plugin – I’d advise to check that out instead.

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