Advertisement
Guest User

check.php

a guest
Sep 2nd, 2015
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. <?php
  2. session_start();
  3. require_once "connect.php";
  4. $polaczenie = @new mysqli($host, $db_user, $db_password, $db_name);
  5. if (!isset($_SESSION['zalogowany']))
  6. {
  7. header('Location: index.php');
  8. exit();
  9. }
  10. if($_SESSION['captcha'] == $_POST['kod']){//CAPTCHA POPRAWNA
  11. $login = $_SESSION['user'];
  12. mysql_query("UPDATE `uzytkownicy` SET `zakupy` = 0 WHERE `user`='$login' ");
  13. echo mysql_error;
  14. ?> <script> location.replace("aukcje"); </script> <?php
  15. }
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement