Guest User

Untitled

a guest
Feb 22nd, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. $.ajax({
  2. type: "POST",
  3. url: "php/databasee.php",
  4. data:{"name":56},
  5. success:function(msg){
  6. console.log('done');
  7. },
  8. error:function(msg){
  9. console.log('not');
  10. }
  11. });
  12.  
  13. <?php
  14.  
  15. $servername="localhost";
  16. $username="root";
  17. $password="";
  18. $database="project";
  19. $conn=mysqli_connect($servername, $username, $password, $database);
  20.  
  21. $tabl=$_POST['name'];
  22. echo $tabl;
  23. ?>
Add Comment
Please, Sign In to add comment