if (false === Validator::isValidName($_POST['name'])){
$errors['name'] = 'Введите человеческое имя!';
}
<label>
<input type="name" name="name" value="" />
<span class="error"><?= $errors['name'] ?></span>
</label>
$url = 'http://mysite.com/hello/world?look_at=me';
$query = parse_str(parse_url($url, PHP_URL_QUERY));
<a href="?<?= http_build_query(array_merge($query, ['category' => 'val'])) ?>">Категория каталога</a>
<a href="?<?= http_build_query(array_merge($query, ['sort' => 'price'])) ?>">Сортировать по цене</a>
$values = [1, 2, 3];
$in_query = implode(',', array_fill(0, count($values), '?'));
$query = $DB->prepare(sprintf("UPDATE `Ttopic` SET `main`= ?, `main_id`= ?, `type`='".$f['type']."' WHERE `id` IN (%s) LIMIT 10", $in_query));
if($query->execute(array_merge([$main, $theme], $values)) echo 'ok';