Create a Connection to a MySQL Database – PHP

mysql_connect(SERVER-NAME,USER-NAME,PASSWORD);

eg:

<?php

mysql_connect(“localhost”,”root”,”user1″);

?>

Share

Leave a Reply

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