Delete addnewmember.php

parent ed493972
<?php
include('../conn.php');
$id=$_REQUEST['id'];
$user=$_POST['user'];
if (empty($user)){
?>
<script>
window.alert('Please select user');
window.history.back();
</script>
<?php
}
else{
mysqli_query($conn,"insert into chat_member (userid, chatroomid) values ('$user','$id')");
?>
<script>
window.alert('Member Added Successfully');
window.history.back();
</script>
<?php
}
?>
\ 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