Saturday 11 January 2014

How to connect with database

Copy these code in your  page and your database will be connected.

<?php


$con=mysql_connect('localhost','root','');
if(!$con)
{
echo"connection not established";
}
else
{
echo"connection established";
}

?>

4 comments:

  1. I really appreciate your Post. Thanks for sharing such a useful information.
    Wordpress Web Development Company

    ReplyDelete
  2. Thank you for sharing such great information. It has help me in finding out more great information.
    Website development in UK

    ReplyDelete
  3. Nice blog! I really loved reading through this Blog... Thanks for sharing such a very interesting post with us and keep blogging.
    Visit our website-
    app and web development company
    hire xamarin developer

    ReplyDelete