Delete login.php

This commit is contained in:
wiecktobi 2018-06-10 13:25:12 +02:00 committed by GitHub
parent 5ab908d255
commit 126aed3f54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,22 +0,0 @@
<?php
require('../dbConnect.php');
$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 $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();
// }
?>