pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Keary Suska <hierophant@pcisys.net>
To: Postgres-PHP <pgsql-php@postgresql.org>
Subject: Re: Column names
Date: Sun, 03 Nov 2002 11:19:37 -0700
Message-ID: <B9EAB6C9.14F27%hierophant@pcisys.net> (raw)
In-Reply-To: <1036315305.21527@mail4.wannafind.dk>

on 11/3/02 2:26 AM, kelvin@varst.dk purportedly said:

> When I make a simple "SELECT * FROM table;" query, is there somewhere in
> that query I can find the names of the columns?

What exactly do you need to do? The column names are available to PHP. You
can determine them dynamically by using pg_fetch_assoc() and applying
array_keys() to the resulting aray.

Keary Suska
Esoteritech, Inc.
"Leveraging Open Source for a better Internet"




view thread (4+ messages)  latest in thread

Message-ID: <B9EAB6C9.14F27%hierophant@pcisys.net>
Permalink:  ../B9EAB6C9.14F27%25hierophant@pcisys.net/
Also on:    postgresql.org/message-id/B9EAB6C9.14F27%hierophant@pcisys.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: hierophant@pcisys.net
  Subject: Re: Column names
  In-Reply-To: <B9EAB6C9.14F27%hierophant@pcisys.net>
  References: <1036315305.21527@mail4.wannafind.dk> <B9EAB6C9.14F27%hierophant@pcisys.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