domainID; $sql = "select productKeyword, shortMD5 from products p inner join domain_products dp on p.productID = dp.productID where dp.domainID = ".$domainID." limit 45000"; $strOutput = "\n\n"; $strOutput .= "\thttp://".str_replace("www.","",$_SERVER['HTTP_HOST'])."daily\n"; $result = mysql_query($sql); while($row = mysql_fetch_array($result)) { $strOutput .= "\thttp://".str_replace("www.","",$_SERVER['HTTP_HOST'])."/".urlencode($logic->sanitize($row[0]))."/".$config->productIdFriendlyURL."/".$row[1]."weekly\n"; } $sql = "select searchQuery from searches s inner join domain_searches ds on s.searchID = ds.searchID where ds.domainID = ".$domainID; $result = mysql_query($sql); while($row = mysql_fetch_array($result)) { $strOutput .= "\thttp://".str_replace("www.","",$_SERVER['HTTP_HOST'])."/".$config->searchURLStructure."/".urlencode($logic->sanitize($row[0]))."daily\n"; } $strOutput .= ""; print $strOutput; ?>