Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $hostname = "localhost";
- $username = "root";
- $password = "";
- $dbname = "myfirstdb";
- //Δημιουργία της σύνδεσης
- $conn = new mysqli($hostname , $username, $password, $dbname);
- //Έλεγχος της σύνδεσης
- if ($conn->connect_error)
- {
- die("Connection failed: " . $conn->connect_error);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement