0) { $result = mysql_query("SELECT * FROM articles WHERE LOWER(REPLACE(strArticleUrl, ' ', '')) = LOWER(REPLACE('$strArticle', ' ', '')) LIMIT 1"); if($item = mysql_fetch_assoc($result)) { if(strlen($item[strArticleTitle]) > 0) $strArticleHeader = $item[strArticleTitle]; if(strlen($item[strPageTitle]) > 0) $strTitle = $item[strPageTitle]; else $strTitle = $strArticleHeader; if(strlen($item[strArticleContent]) > 0) $strArticleContent = str_replace("\r\n", '
', $item[strArticleContent]); if(strlen($item[strArticleDescription]) > 0) $aMeta[desc] = $item[strArticleDescription]; if(strlen($item[strArticleKeywords]) > 0) $aMeta[keywords] = $item[strArticleKeywords]; } else header("Location: " . PATH_CLIENT_MAIN); } else header("Location: " . PATH_CLIENT_MAIN); ?>