4
1
Fork 0

insert.php edited online with Bitbucket

This commit is contained in:
Marc Kemper 2017-04-28 21:23:29 +00:00
parent 7ced011087
commit fe31176a1e

View file

@ -1,11 +1,11 @@
<?php
session_start();
$cockDatabase = "dulow";
$vac = "vac";
$host = "localhost";
$user = "root";
$password = "";
$user = "vac";
$password = "hPUf8e4karnz61bS";
$conn = new mysqli($host,$user,$password,$cockDatabase);
$conn = new mysqli($host,$user,$password,$vac);
if ($conn->connect_error){
die("Verbindung fehlgeschlagen: " . $conn->connect_error);
}
@ -19,7 +19,7 @@ if($_POST['url'] == ''){
$url = $_POST['url'];
$author = $_SESSION['user'];
$sql = "INSERT INTO cheaterliste (url, author) VALUES('".$url."', '".$author."')";
$sql = "INSERT INTO cheaterlist (url, author) VALUES('".$url."', '".$author."')";
$conn->query($sql);
?>
<meta http-equiv="refresh" content="0; url=/index.php" />