db = $db; $feed->url = $CONF['url']; $feed->username = $user['username']; $feed->time = $settings['time']; $feed->id = $user['idu']; $feed->chat_length = $settings['mlimit']; // Set the $x to output the value via JS echo $feed->postChat($_POST['message'], $_POST['id']); } } mysqli_close($db); ?>