Every php page starts with this:
<?php
$host="localhost"; // Host name
$username=""; // Mysql username
$password=""; // Mysql password
$db_name=""; // Database name
$tbl_name=""; // Table name
// Connect to server and select database.
$con = mysqli_connect($host,$username,$password,$db_name);
session_start();
?>
So how can I make a .php file that save those variables and include them in the start of every html page. And if I want to use $con variable from it. how to use it.