query("SELECT tagName FROM tags WHERE tagId = $seo[1]"); $entries = $_sql->query("SELECT entrySlug, entryTitle, entryPublished, entryBy FROM entries INNER JOIN tagged ON taggedEntry = entryId WHERE taggedTag = $seo[1] AND entryHidden IS NULL ORDER BY entryPublished DESC"); if (theme_component('tag')) include theme_component('tag'); else { if ($tagged->num_rows) { $tag = $tagged->fetch_assoc(); addTitle($tag['tagName']); echo "

$tag[tagName]

"; if ($entries->num_rows) { echo ""; } } } unset($tag); unset($tagged); unset($entries);