Advertisement
Guest User

Untitled

a guest
Jul 10th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.46 KB | None | 0 0
  1. <?php
  2. $dbusername = 'root'; # Database user.
  3. $dbpassword = 'mysql'; # Database password.
  4. $dbaddress = 'localhost'; # Database location
  5. $dbname = 'jandsjoinery'; # Database name.
  6. $con = mysql_connect($dbaddress, $dbusername, $dbpassword)
  7.     or die('Could not connect to the database'); #Connect to the database or stop and display an error.
  8. mysql_select_db($dbname, $con)
  9.     or die('could not find table'); #Connect to the database or stop and display an error.
  10. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement