insert.php edited online with Bitbucket
This commit is contained in:
parent
7ced011087
commit
fe31176a1e
1 changed files with 5 additions and 5 deletions
10
insert.php
10
insert.php
|
@ -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" />
|
||||
|
|
Reference in a new issue