game chat send msg

This commit is contained in:
lopar 2018-03-24 00:04:55 +02:00
parent dc910a1052
commit 6db8655fec

View File

@ -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()
{