Friday, 29 January 2016

PHP Connection / Database Connection / PHP Mysql Database Connection

PHP Connection / Database Connection / PHP Mysql Database Connection
 <?php
$hostname='localhost';   // Hostname
$username='root';  // Username
$password=''; //Password
    $connect=mysql_connect($hostname,$username,$password);
    mysql_select_db('learning');
    /*
    if($connect==true)
        {
            echo "true";
        }
    else
        {
        echo "error";
        }*/   


?>

No comments:

Post a Comment