Example Script PHP Connect to Database

<html>
    <head>
        <title>
            Koneksi Databases
        </title>
    </head>
    <body>
        <?php
            $host="localhost"; //This script connects us with the local host
            $user="sandroid"; //this as a user that I use can be replaced...
            $pass=" "; //I purposely empty password, but most also are emptied:)
           
            mysql_connect($host, $username, $password) or die ("koneksi gagal dilakukan:". mysql_error());
           
            echo "koneksi sukses";
        ?>
    </body>
 

Posted in , . Bookmark the permalink. RSS feed for this post.

Leave a Reply

Pages

Search

Sandiah Notes Template Sandroid11.blogspot.com.