in_group()

SQL statement helper to find values in between dots.

Versions: 9

in_group( string $column_name, string $value [, string $delim ] ) : string

Parameters

$column_name (string) (Required)

$value (string) (Required)

$delim (string) (Optional) Delimiter. Default value: ,

Return Values

(string)

Examples

$result = dbquery("SELECT news_cat_id, news_cat_name, news_cat_language
FROM ".DB_NEWS_CATS."
".(multilang_table('NS') ? "WHERE ".in_group('news_cat_language', LANGUAGE) : '')."
ORDER BY news_cat_name
");