Esta es una conexion por defecto para conectar HTML con SQL por medio de PHP Solo debes crear un archivo.php y cambiar los datos que se indicaran en el codigo Luego de eso debes incluir el archivo.php en las paginas que necesites llamar informacion desde la base de datos para despues llamar a la variable que hace la conexion asi podras hacer las query pertinentes y llamar datos desde la db
This is a default connection to connect HTML with SQL through PHP. You only have to create a file.php and change the data that will be indicated in the code. After that you must include the file.php in the pages you need to call information from the database to then call the variable that makes the connection so you can make the relevant query and call data from the db