Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $conn_error = 'could not connect to the database';
- $mysql_host = 'localhost';
- $mysql_user = 'root';
- $mysql_password = '';
- $mysql_db = 'my_database';
- @$conn = mysqli_connect($mysql_host, $mysql_user, $mysql_password);
- if (!@mysqli_select_db($conn, $mysql_db) || !@$conn) {
- die($conn_error);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement