Delete deleteroom.php

parent cea920b5
<?php
include('../conn.php');
if (isset($_POST['del'])){
$id=$_POST['id'];
mysqli_query($conn,"delete from `chatroom` where chatroomid='$id'");
mysqli_query($conn,"delete from `chat` where chatroomid='$id'");
mysqli_query($conn,"delete from `chat_member` where chatroomid='$id'");
}
?>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment