X-Original-To: pgsql-www-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 8FA51D1B456 for ; Thu, 19 Feb 2004 18:49:48 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 75156-04 for ; Thu, 19 Feb 2004 14:49:46 -0400 (AST) Received: from web40004.mail.yahoo.com (web40004.mail.yahoo.com [66.218.78.22]) by svr1.postgresql.org (Postfix) with SMTP id CE2D5D1D4E7 for ; Thu, 19 Feb 2004 14:49:44 -0400 (AST) Message-ID: <20040219184944.71602.qmail@web40004.mail.yahoo.com> Received: from [64.83.34.44] by web40004.mail.yahoo.com via HTTP; Thu, 19 Feb 2004 10:49:44 PST Date: Thu, 19 Feb 2004 10:49:44 -0800 (PST) From: Chris Ryan Subject: Re: Feeds Integration To: David Costa Cc: PostgreSQL WWW Mailing List In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/144 X-Sequence-Number: 3709 > > Umh, so what about the link ? is it part of the body ? if that is the > > case it might be a problem, can solve that, just not the fast way to > produce the xml from db data. > Here is an updated query. The URL had slipped my mind as one I build the URLs from knows practices on GBorg and the body is actually the full story. You'll note as well in the query below that I added in for getting the submitter of the news item. SELECT headline AS title, 'http://gborg.postgresql.org/project/'||project_name||'/news/newsfull.php?news_id='||news_id AS link, -- the fully built url to the news item body, -- the full news text you may want to abbreviate here member_name AS author, -- member name on gborg of author submit_date -- date not datetime :( FROM project_news, project, member WHERE (project_news.project_id=project.project_id) AND (project_news.member_id=member.member_id) AND (project_news.active=true) AND (project_news.on_homepage=true) ORDER BY submit_date DESC LIMIT 10; Chris Ryan __________________________________ Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. http://antispam.yahoo.com/tools