Add files via upload
This commit is contained in:
parent
e311cfa6dc
commit
48dc6b0a23
@ -1,19 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require('dbConnect.php');
|
require('../dbConnect.php');
|
||||||
if (isset($_POST['index.php'])) {
|
|
||||||
|
|
||||||
$name = $_POST['loginName'];
|
$name = $database->real_escape_string($_POST['registerName']);
|
||||||
$pswd = $_POST['loginPassword'];
|
$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) {
|
if ($pswd == $abfrage) {
|
||||||
// code..
|
// 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