Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $username = "root";
- $password = "";
- $dbname = "rejestracja";
- header('Content-Type: text/html; charset=utf-8');
- // Create connection
- $conn = mysqli_connect("localhost", $username, $password, $dbname);
- // Check connection
- if (!$conn) {
- die("Connection failed: " . mysqli_connect_error());
- }
- mysqli_query($conn,"SET NAMES utf8");
- mysqli_query($conn,"SET CHARACTER_SET utf8_unicode_ci");
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement