Re: displaying a rowset in php...same column names

From: Enver ALTIN <enver(dot)altin(at)frontsite(dot)com(dot)tr>
To: Michael Hanna <taojones(at)sympatico(dot)ca>
Cc: pgsql-php(at)postgresql(dot)org
Subject: Re: displaying a rowset in php...same column names
Date: 2004-01-07 11:14:34
Message-ID: 1073474074.31454.3.camel@skyblue.office.frontsite.com.tr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

On Wed, 2004-01-07 at 05:09, Michael Hanna wrote:
> This query: SELECT login, firstname, lastname, date_part('epoch',
> lastlogin), date_part('epoch', regdate) FROM admin ORDER BY login
> results in:
>
> login | firstname | lastname | date_part |
> date_part

SELECT foo as bar,bar as foo from footable

notice the "as" thingie. It would help.
--
__________
| |
| | Enver ALTIN (a.k.a. skyblue)
| | Software developer, IT consultant
| FRONT |
|==========| FrontSITE Bilgi Teknolojisi A.Ş.
|_____SITE_| http://www.frontsite.com.tr/

In response to

Responses

Browse pgsql-php by date

  From Date Subject
Next Message Gavin M. Roy 2004-01-07 19:36:09 Re: displaying a rowset in php...same column names
Previous Message Christopher Kings-Lynne 2004-01-07 04:09:20 Re: displaying a rowset in php...same column names