Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //Set strings for host, user, password and database name for access to
- //the database.
- $dbHost='localhost';
- $dbUser ='root';
- $dbPassword='112358destiny';
- $dbName='DainDev_DB';
- //Connect to the database server.
- $dbCon = @mysql_connect($dbHost, $dbUser, $dbPassword);
- if(!$dbCon){
- echo("<p>Cannot conect to the database server.</p>");
- exit();
- }
- //Connect to the database.
- mysql_select_db($dbName, $dbCon);
- if(!@mysql_select_db($dbName)){
- echo("Cannot locate ".$dbName." database.</p>");
- exit();
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement