Add files via upload

This commit is contained in:
wiecktobi 2018-06-08 17:29:14 +02:00 committed by GitHub
parent e311cfa6dc
commit 48dc6b0a23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,19 +1,22 @@
<?php
require('dbConnect.php');
if (isset($_POST['index.php'])) {
require('../dbConnect.php');
$name = $_POST['loginName'];
$pswd = $_POST['loginPassword'];
$name = $database->real_escape_string($_POST['registerName']);
$pswd = $database->real_escape_string($_POST['registerPassword']);
$email = $database->real_escape_string($_POST['registerMail']);
$abfrage = "SELECT PASSWORD WHERE loginName=NAME";
$abfrage = "SELECT password WHERE $name=user";
if ($pswd == $abfrage) {
// code..
echo "HI";
}
}
// if ($abfrage == "") {
$stmt = $database->prepare("INSERT INTO user(user, email, password) VALUES (?,?,?)");
$stmt->bind_param("sss", $name, $email, $pswd);
$stmt->execute();
$stmt->close();
// }
?>