Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>Untitled Document</title>
- </head>
- <body>
- <?php
- $ser=$_POST['s'];
- $conn=mysqli_connect('localhost','root',"","COLLEGE");
- if($conn->connect_error)
- {
- die("connection succesfull".$conn->connect_error);
- }
- $sql="DELETE FROM EMP WHERE EMPNO='$ser'";
- if(mysqli_query($conn,$sql)){
- echo "record deleted successfully";
- }
- else{
- echo "deletion failed";
- }
- $conn->close();
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement