MLM(Multi Level Marketing) Website Using PHP - Matrix Plan 1X3

Part 4 - Create Database and Connection Page

All of our textual data should be stored somewhere. For this, we will create a database. A database is a collection of related tables that can hold the textual data, as well as multimedia data. But to avoid the heavy size of the database, we will store only textual data. 

In PHP to connect to the database, we need some information of databases like hostname, user, password, and database name. You can understand all these things in the video and can copy the code given below.


$db_host = "localhost";
$db_user = "root";
$db_pass = "";
$db_name = "mlm_matrix";

$con = mysqli_connect($db_host,$db_user,$db_pass,$db_name);

	echo 'Faild';