Skip to content

Commit

Permalink
neu
Browse files Browse the repository at this point in the history
  • Loading branch information
Amal committed Mar 9, 2023
1 parent 2439414 commit a66d8c9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions Test/php-test
Submodule php-test added at 0aa01b
1 change: 1 addition & 0 deletions Test/php-test-1
Submodule php-test-1 added at 243941
4 changes: 2 additions & 2 deletions Test/try-relation.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,14 @@ function secure($data){
$data = stripcslashes($data);
return $data;
}
if(isset($_POST['get']) && isset($_SESSION['tan']) && $_SESSION['tan'] === $_POST['tan']){
if(isset($_POST['get']) && isset($_SESSION['tan']) ){

$pn= secure($_POST['pn']);
$stmt=mysqli_prepare($conn, "SELECT Nam ,Email FROM library_mitarbeiter WHERE id =?");
mysqli_stmt_bind_param($stmt, "s", $pn);
mysqli_stmt_execute($stmt);
mysqli_stmt_bind_result($stmt,$nam,$mail);

echo $_POST['tan'] . "<br>" . $_SESSION['tan'];
if( mysqli_stmt_fetch($stmt) == true){
echo "<br> Name: ". htmlspecialchars($nam). "<br>" . "Email : " .htmlspecialchars($mail). "<br>". "<br>";

Expand Down

0 comments on commit a66d8c9

Please sign in to comment.