Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $servername = "localhost";
- $username = "root";
- $password = "";
- // Create connection
- $conn = @mysql_connect($servername, $username, $password);
- // Check connection
- if (!$conn) {
- die("Connection failed: " . mysql_connect_error());
- }
- else{
- mysql_select_db("ultradrive") or die(mysqli_connect_error());
- // echo "The database is connected. <br><br>";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement