Problem with using global variables in php is that they lose the the assigned value in a different php file. They only keep the global variable value in the php file in which they are declared.
Instead of globals try and use $_SESSION or $_COOKIE to keep value intact across different php files in a project
Copyright © 2026 eLLeNow.com All Rights Reserved.