pg.ddx.io pgsql-php@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Matthias Weinhold <Matthias.Weinhold@gmx.net>
To: postgresql-php Liste <pgsql-php@postgresql.org>
Subject: array fields in the database and their handling with php4
Date: Sun, 26 Oct 2003 16:04:49 +0100
Message-ID: <20031026160449.7a72effa.Matthias.Weinhold@gmx.net> (raw)
Hey,
i have a table 'mitarbeiter' in my database, column 'Abteilung' is an
array{'Abteilung1, Abteilung2'}, because some people work in more than
one section. Now i will print the results from a query like
SELECT name, abteilung[1], abteilung[2],FROM mitarbeiter WHERE name =
D. Benner;
to an html-table via php in this form:
Name | Benner
-------------------
Abteilung 1 | abt_1
-------------------
Abteilung 2 | abt_2
I don't no how to handle the array-field in the database? Any hints?
Greetings from cold germany Matthias
--
Die Asiaten haben den Weltmarkt mit unlauteren Methoden erobert - sie
arbeiten während der Arbeitszeit.
-- Ephraim Kishon (eigentlich: Ferenc Hoffmann)
view thread (4+ messages) latest in thread
Message-ID: <20031026160449.7a72effa.Matthias.Weinhold@gmx.net> Permalink: ../20031026160449.7a72effa.Matthias.Weinhold@gmx.net/ Also on: postgresql.org/message-id/20031026160449.7a72effa.Matthias.Weinhold@gmx.net ·
reply
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Reply to all the recipients from your mail client; the link fills in the headers below: reply via email Some clients, webmail especially, drop In-Reply-To and References from a link, and the reply then starts a new thread: use the mbox below. To: pgsql-php@postgresql.org Cc: Matthias.Weinhold@gmx.net Subject: Re: array fields in the database and their handling with php4 In-Reply-To: <20031026160449.7a72effa.Matthias.Weinhold@gmx.net> References: <20031026160449.7a72effa.Matthias.Weinhold@gmx.net> * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox