Home » PHP » Creating a PHP MySQLi Database Connection using XAMPP

Creating a PHP MySQLi Database Connection using XAMPP

Friends in this tutorial I show you how to create a PHP MySQL database connection using XAMPP. Before storing or accessing the data, we want to create a database first. To connect the Mysql database we need to enter hostname, username, password and database name. Then we will connect MySQL database through PHP mysqli_connect. By using IF statement we checking it is connected successfully or not.



Was this article helpful?

Yes No

How can we improve it?


We appreciate your helpul feedback!

Your answer will be used to improve our content. The more feedback you give us, the better our pages can be.

Follow us on social media:

Facebook Pinterest


Creative Designer & Developer specialist by the spirit and a loving blogger by thoughts.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top