I have similiar problem like I had here: PHP - How to format data for in_array.
I have a comma separated list of URIs in 1 database field
. All URIs will be used in an array of excludes like Cookies, URIs, IDs. Excluded Cookies are hardcoded, but not URIs. They come from a DB Query and the result of the query can be multiple, but not more 10 or 20. So how has the output from the query to be formated if there is more than 1 URI in database?
$lsc_exclude_uri_query = xtDBquery("SELECT
lsc.option_value // URIs
FROM lsc_config lsc
WHERE lsc.option_id = 9");
while ($exclude_uri_query = xtc_db_fetch_array($lsc_exclude_uri_query)) {
if (xtc_not_null($exclude_uri_query['option_value'])) {
$uris = $exclude_uri_query['option_value'];
}
}
// This is the array of excludes
if (!isset($_COOKIE[$lsc_customer_login]) && !isset($_COOKIE[$lsc_admin]) && !strstr($PHP_SELF, 'result from db query')) {
}