game chat send msg
This commit is contained in:
parent
dc910a1052
commit
6db8655fec
6
chat.php
6
chat.php
@ -12,9 +12,9 @@ if ($_SESSION['uid'] == null) {
|
||||
include_once "config.php";
|
||||
//include_once "functions.php";
|
||||
|
||||
//$msg = filter_input(INPUT_POST,'msg');
|
||||
//$uid = $_SESSION['uid'];
|
||||
//if ($msg) db::c()->query('INSERT INTO `chat` (`cid`, `uid`, `msg`) VALUES (?i, ?i, "?s")', 1, $uid, $msg);
|
||||
$msg = filter_input(INPUT_POST,'msg');
|
||||
$uid = $_SESSION['uid'];
|
||||
if ($msg) db::c()->query('INSERT INTO `chat` (`cid`, `uid`, `msg`) VALUES (?i, ?i, "?s")', 1, $uid, $msg);
|
||||
|
||||
function show_messages()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user