Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <body>
- <?php
- $servername = "localhost";
- $username = "fabian";
- $password = "XXX";
- $dbname = "music";
- // Create connection
- $conn = mysqli_connect($servername, $username, $password, $dbname);
- // Check connection
- if (!$conn) {
- die("Connection failed: " . mysqli_connect_error());
- }
- else echo "everything fine";
- mysqli_close($conn);
- ?>
- </body>
- </html>
- <!DOCTYPE html>
- <html>
- <body>
- everything fine
- </body>
- </html>
- Connection failed: Access denied for user 'fabian'@'localhost'
Add Comment
Please, Sign In to add comment