Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement