MySQL Connect
0 4293
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 Web Hosting Best WordPress Hosting](https://bluehost-cdn.com/media/partner/images/codingtag/728x90/728x90BW.png)
Share:
Comments
Waiting for your comments