ok well it runs the query but my function isnt working
here is my code:
PHP Code:
if($_POST['action']=="msginsert")
{
globalize($_POST, array(
'message' => TEXT,
'ch' => INT
));
require_once('./includes/functions_chat.php');
parse_commands($message);
$DB_site->query("INSERT INTO ".TABLE_PREFIX."chat_messages (channel_id,chatter,chatter_id,chat_msg,msg_dateline,receiver,msg_private) VALUES (" . intval($msginsert['ch']) . ", '".addslashes($msginsert['chatter'])."'," . intval($msginsert['chatter_id']) . ", '".addslashes($msginsert['message'])."', ".TIMENOW.", " . intval($msginsert['receiver']) . ", ".intval($msginsert[private]).")");
}
and functions_chat.php i have attached