Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.ajax({
- type: "POST",
- url: "php/databasee.php",
- data:{"name":56},
- success:function(msg){
- console.log('done');
- },
- error:function(msg){
- console.log('not');
- }
- });
- <?php
- $servername="localhost";
- $username="root";
- $password="";
- $database="project";
- $conn=mysqli_connect($servername, $username, $password, $database);
- $tabl=$_POST['name'];
- echo $tabl;
- ?>
Add Comment
Please, Sign In to add comment