1
0
Fork 0
This repository has been archived on 2024-06-28. You can view files and clone it, but cannot push or open issues or pull requests.
veranstaltung/verbindungsaufbau.php
2013-12-27 10:20:00 +01:00

10 lines
No EOL
303 B
PHP

<?php
$mysqli = new mysqli("localhost", "root", "", "veranstaltung"); //Mit MySQL verbinden
if ($mysqli->connect_error) {
echo "Verbindungsfehler: ". mysql_connect_error();
exit;
}
if (!$mysqli->set_charset("utf8")) { //Zeichensatz auf UTF-8 setzen (Umlaute!)
echo "Fehler beim Laden von UTF-8";
}
?>