Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Database configuration
- $dbHost = "localhost";
- $dbUsername = "root";
- $dbPassword = "";
- $dbName = "test";
- // Create database connection
- $db = new mysqli($dbHost, $dbUsername, $dbPassword, $dbName);
- // Check connection
- if ($db->connect_error) {
- die("Connection failed: " . $db->connect_error);
- $mysqli->set_charset("utf8");
- }
- ?>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement