feat: added SQL-Connection and first test for SQL
This commit is contained in:
10
db.php
Normal file
10
db.php
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
$mysqli = new mysqli("ioannisdev.de", "samp", "Kokoras_12!!", "Alphacar");
|
||||||
|
|
||||||
|
if($mysqli -> connect_errno) {
|
||||||
|
echo "Fehler beim verbinden: " . $mysqli -> connect_error;
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
print("ERFOLG: Verbindung zur Datenbank hergestellt");
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user