Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $dbusername = 'root'; # Database user.
- $dbpassword = 'mysql'; # Database password.
- $dbaddress = 'localhost'; # Database location
- $dbname = 'jandsjoinery'; # Database name.
- $con = mysql_connect($dbaddress, $dbusername, $dbpassword)
- or die('Could not connect to the database'); #Connect to the database or stop and display an error.
- mysql_select_db($dbname, $con)
- or die('could not find table'); #Connect to the database or stop and display an error.
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement