Not answered here Access a global variable in a PHP function (10 answers) Not relevant in any way at all. This issue is a issue which is randomly appearing in relation to $conn being null and not an ...