- initial import - more or less

This commit is contained in:
nockiro 2017-03-18 13:12:46 +01:00
parent 4b1134bf13
commit f517325095
3 changed files with 26 additions and 0 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
/nbproject/private/
/nbproject

14
core/dbconnect.php Normal file
View file

@ -0,0 +1,14 @@
<?php
mysql_pconnect('localhost', 'user', 'pass') or die ("Keine Verbindung moeglich");
$DB_vorhanden = mysql_select_db('database') or die ("Die Datenbank existiert nicht");
$mysqli = new mysqli("localhost", "user", "pass", "database");
/* check connection */
if ($mysqli->connect_errno) {
printf("Connect over mysqli failed: %s\n", $mysqli->connect_error);
exit();
}
?>

10
index.php Normal file
View file

@ -0,0 +1,10 @@
<!DOCTYPE html>
<?php include "core/dbconnect.php"; ?>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
</body>
</html>