Add files via upload
This commit is contained in:
parent
24d2e76e30
commit
e311cfa6dc
22
login.php
Normal file
22
login.php
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
<?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();
|
||||||
|
// }
|
||||||
|
|
||||||
|
?>
|
Loading…
Reference in New Issue
Block a user