$stmt = $db->prepare('INSERT INTO channels VALUES (NULL, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);');
if($stmt->execute([$name, $default_icon, '1', $def_type, date('d.m.Y h:i:s'), $_SESSION['uid'], $def_message, $channel_link, $collection, $title])){
echo 'done';
}