Add files via upload
This commit is contained in:
parent
e311cfa6dc
commit
48dc6b0a23
@ -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();
|
||||
// }
|
||||
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user