Re: Column names

From: Keary Suska <hierophant(at)pcisys(dot)net>
To: Postgres-PHP <pgsql-php(at)postgresql(dot)org>
Subject: Re: Column names
Date: 2002-11-03 18:19:37
Message-ID: B9EAB6C9.14F27%hierophant@pcisys.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

on 11/3/02 2:26 AM, kelvin(at)varst(dot)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"

In response to

Browse pgsql-php by date

  From Date Subject
Next Message Jascha Schubert 2002-11-04 15:24:22 Booleans
Previous Message Kelvin Varst 2002-11-03 09:26:14 Column names