Facebook
From dwa, 1 Year ago, written in PHP.
Embed
Download Paste or View Raw
Hits: 103
  1. <?php
  2. require 'connect.php';
  3.         $name = $_POST["user_name"];
  4.         $password = $_POST["password"];
  5.         $email = $_POST["email"];
  6.        
  7.        
  8.        
  9.         $sql = "INSERT INTO uzytkownicy(name, pass, email) VALUES ('$name', '$password', '$email')";
  10.        
  11.         if (mysqli_query($conn, $sql)){
  12.                 $result["succes"] = "1";
  13.                 $result["message"] = "dobrze";
  14.                
  15.                 echo json_encode($result);
  16.                 mysqli_close($conn);
  17.                
  18. }
  19. ?>