MySQL Databade connect | Coding Tag
×

MySQL Connect

4422

To connect with MySQL database, we have to connect it (database) with the server. For this we need Server Name, User Name and Password.

<?php

$servername="localhost";
$username="user";
$password="pass";

//Now create connection
$connect=mysql_connect($servername,$username,$password) or die ("Connection failed");

?>



Best WordPress Hosting


Share:


Discount Coupons

Get a .COM for just $6.98

Secure Domain for a Mini Price



Leave a Reply


Comments
    Waiting for your comments