From kodeboard, 4 Years ago, written in PHP.
Embed
  1. <?php
  2. $username = "username";
  3. $password = "password";
  4. $hostname = "localhost";
  5.  
  6. //connection to the database
  7. $dbhandle = mysql_connect($hostname, $username, $password) or die("Unable to connect to MySQL");
  8. echo "Connected to db";
  9. ?>

You must login to reply or comment on this code.