By: Prem Tiwari | Last Updated:
In this tutorial, I will explain simple and easy steps that will help you to create a database connection with MySql database with PHP applications. It is very easy to write a script in PHP to get connect with most of the popular open source database like MySql.
$conn= mysql_connect("hostname", "username", "password") or
die("cannot connect to server");