How to declare a global variable in php?

The $GLOBALS array can be used instead: From the Manual: An associative array containing references to all variables which are currently defined in the global scope of the script. The variable names are the keys of the array. If you have a set of functions that need some common variables, a class with properties may … Read more

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