Upload send_message File

parent 940aa176
<?php
include('../conn.php');
session_start();
if(isset($_POST['msg'])){
$msg=$_POST['msg'];
$id=$_POST['id'];
mysqli_query($conn,"insert into `chat` (chatroomid, message, userid, chat_date) values ('$id', '$msg' , '".$_SESSION['id']."', NOW())") or die(mysqli_error());
}
?>
\ 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