call to undefined method mysqli::connect_error() code example Example: Uncaught Error: Call to undefined function DatabaseOld\mysqli_connect() sudo apt install php-mysqli