pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Schmidt <css.liquid@gmail.com>
To: pgsql-php@postgresql.org
Subject: PHP PDO getting data from pgSQL stored function
Date: Sat, 02 Nov 2013 16:54:36 +0100
Message-ID: <5275203C.2090007@gmail.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-php>

Hi guys,

i need to do a ugly select which i dont want to place in my php code.
I use PDO all the time.

I want to return a structure which is the same as a table i have created.

I want to write it in pgSQL.

Now my question, how can i return that and access it with PHP PDO?
Should I use a cursor or shoul I use the return of the function (if it 
is possible)?

Can someone provide a piece of example code?

Thanks for help


-- 
Sent via pgsql-php mailing list (pgsql-php@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-php



view thread (5+ messages)  latest in thread

Message-ID: <5275203C.2090007@gmail.com>
Permalink:  ../5275203C.2090007@gmail.com/
Also on:    postgresql.org/message-id/5275203C.2090007@gmail.com

 · 

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: css.liquid@gmail.com
  Subject: Re: PHP PDO getting data from pgSQL stored function
  In-Reply-To: <5275203C.2090007@gmail.com>
  References: <5275203C.2090007@gmail.com>

* 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