Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $conn_error = 'Could not connect.'; //If database can't connect, this error wil show up
- $mysql_host = 'localhost';
- $mysql_user = 'root';
- $mysql_pass = 'root';
- $mysql_db = 'lyrics';
- $db = new mysqli($mysql_host, $mysql_user, $mysql_pass, $mysql_db);
- if (mysqli_connect_errno()){
- die($conn_error);
- }
- ?>
Add Comment
Please, Sign In to add comment