Я хочу показывать только слова с минимум 4 Персонажи, на самом деле я могу ограничить хиты и показать только слова с мин. 100 ударов - но как установить мин. длина символа? Спасибо!Минимум 4 персонажа или Show Nothing - PHP
function sm_list_recent_searches($before = '', $after = '', $count = 20) {
// List the most recent successful searches.
global $wpdb, $table_prefix;
$count = intval($count);
$results = $wpdb->get_results(
"SELECT `terms`, `datetime`
FROM `{$table_prefix}searchmeter_recent`
WHERE 100 < `hits`
ORDER BY `datetime` DESC
LIMIT $count");
if (count($results)) {
foreach ($results as $result) {
echo '<a href="'. get_settings('home') . '/search/' . urlencode($result->terms) . '">'. htmlspecialchars($result->terms) .'</a>'.", ";
}
}
}
plussing это, как это было первым и я смешанная длина с char_length – Gordon