[Solved] Database Connection not working after migrating from PHP7.4 to PHP8.0

Looks like you’ve been relying on the ancient, long-deprecated behaviour that methods named the same as the class act as the constructor. This behaviour has finally been thrown out in PHP 8: Methods with the same name as the class are no longer interpreted as constructors. The __construct() method should be used instead. 0 solved … Read more