Received: from chronozon.artofdns.com (cr466046-a.etob1.on.wave.home.com [24.42.158.249]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f317ubK66115 for ; Sun, 1 Apr 2001 03:56:37 -0400 (EDT) (envelope-from stef@chronozon.artofdns.com) Received: from devil.hades (devil.hades [192.168.2.6]) by chronozon.artofdns.com (Postfix) with SMTP id 78EFEC7ED for ; Sun, 1 Apr 2001 03:59:32 -0400 (EDT) Content-Type: text/plain; charset="iso-8859-1" From: Stef Telford Organization: Hades Inc To: pgsql-sql@postgresql.org Subject: Trigger Function and Html Output Date: Sun, 1 Apr 2001 03:50:20 -0400 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Message-Id: <01040103502000.12630@devil.hades> Content-Transfer-Encoding: 8bit X-Archive-Number: 200104/1 X-Sequence-Number: 2340 Hello, i find i must turn once again to the list for help, in what is probably another silly request. I have a view (made of 4 tables) and now find that users need to have the view different based on some criteria from the database. its. well. its rather icky to go into. but i can figure that part out myself. The long and short of it is this, I would like the view to return a html table. I understand that I can do this via a function and a trigger on select, massage the data, and then construct each line to simply be returned to the perl program. The only problem comes with, as far as i am aware, a trigger returns and is processed on a 'per line' basis for a select, so how would i get the view's column titles output for the table header ? I ideally want to make as much of the perl construction of the table from the database, this includes the head of the table, all and each row, and then of course closing the table 'off'. I know this sounds like a strange way to do things, but i think this is the best way to go. many thanks stefs