weird error - at least for me
OK, I have a lot of PHP pages that use the following at the very beginning of the page:
But on a new page I did, I get the "Access denied for user 'root'@'localhost' (using password: NO)" message. Now, I have by "db_connect.php" function so that it is used a lot without any changes.
If I put the code from the db_connect.php function in the place of the include statement, everything is working.
So, what can be wrong with the call for the function?