Pages

Saturday, 22 June 2013

How to connect mysql database in php and use of config file

Hello friends,
Now i am trying to connect mysql database in php.simple php code that connect database are here.

<?php
              mysql_connect("host_name","user_name","password")or die("database are not connected");
              mysql_select_db("db_name")or die("database are not selected");

?>

No comments: