Blob: connect.php
Blob id: c7981e3bfe1de5d18d2ae32bca170f59f2acbee0
Size: 363 B
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | <?php $servername = "localhost"; $username = "root"; $password = ""; $database = "tyoharjoittelu"; // Create connection $conn = new mysqli($servername, $username, $password, $database); $conn->set_charset("utf8mb4"); // Check connection if ($conn->connect_error) { die("Tietokanta virhe: " . $conn->connect_error); } //echo "Tietokanta yhteys toimii :)"; ?> |