How to Connect a MySQL Database with PHP

If you want to fetch information from database or insert information to a database using PHP, first you need to establish a connection between MySQL database and PHP. You can easily manipulate databases from your PHP scripts once you have connected them. Here  I will show you, how you can connect your MySQL database with