Create Connection with database in (Mysqli,PHP)

Share:

Connection Create between PHP and mysqli



Following image show how to create an connection

Initial Steps:
Open Your Text Editor like (Sublime ,Notepad ++ ).

Step1
If you are use xampp offline server than you have to write server name "localhost"

Step2
If you  create or change any other name of database application than you write tham otherwise default name is "root"

Step3
If you create any password on your database application than you write your password in the field of pass otherwise default pass is empty field.


Step4
you are required to create database (Using query or application tabs)


Step5
4th field filled by your database name .

Step6
Write mysqli Query 
mysqli_connect($server,$username,$password,$db);


finally your connection is created you write in any field of
and do work with database .

If you want any help please contact us 
or placed the comment.

No comments