include '.' . DIRECTORY_SEPARATOR . 'Include' . DIRECTORY_SEPARATOR . 'system.inc'; $tmpCategory = str_replace('-', '', $strCategory); if($tmpCategory !== $strCategory) { header("Location: " . PATH_CLIENT_MAIN . "/" . $tmpCategory . "/"); exit; } if(!empty($strCategory)) { $strCategory = str_replace('-', ' ', urldecode($strCategory)); $strArticleHeader = $strTitle = ucwords("Credit Cards from $strCategory"); $result = mysql_query("SELECT * FROM categories WHERE strCatPath = '$strCategory'"); if($category = mysql_fetch_assoc($result)) { $strArticleHeader = $strTitle = "$category[strCatName] Credit Cards"; if(!empty($category[strCatTitle])) $strTitle = $category[strCatTitle]; if(!empty($category[strCatText])) $strArticleContent = $category[strCatText]; if(!empty($category[strCatDescription])) $aMeta[desc] = $category[strCatDescription]; if(!empty($category[strCatKeywords])) $aMeta[keywords] = $category[strCatKeywords]; } $result = mysql_query("SELECT * FROM cards WHERE strCardCategory = '$category[strCatName]' order by strCardName"); $cards = array(); while($item = mysql_fetch_assoc($result)) { $cards[] = '' : '>') . $item[strCardName] . ''; } if(count($cards)) $strArticleContent .= '