pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Viorel Dragomir <bc@vio.ro>
To: sebastien.baudry@baudry-engineering.com
To: pgsql-php@postgresql.org
Subject: Re: How to call a PL/pgSQL function in a PHP script?
Date: Thu, 2 Oct 2003 11:04:42 +0300
Message-ID: <049001c388bb$d637f840$0600a8c0@fix.ro> (raw)
References: <KAECIKDEBEFAPMGIJGOGIEKCENAA.sbaudry@yahoo.com>

$query = "SELECT myfunc(param1, param2, param3)";


vio-
----- Original Message ----- 
From: "Sebastien Baudry" <sbaudry@yahoo.com>
To: <pgsql-php@postgresql.org>
Sent: Thursday, October 02, 2003 11:00 AM
Subject: [PHP] How to call a PL/pgSQL function in a PHP script?


> Hi,
> I created functions (using PL/pgSQL) in my PostGreSQL database and now I
try
> to call them in my PHP script but it doesn't succeed.
> I can open a connection to the database, run a simple query and get the
> result, but I don't know how to do with the functions.
> Anybody could help me?
>
> --
> Sébastien BAUDRY - DBA Oracle/MS-SQL & Project Manager
> BAUDRY ENGINEERING BT. H-1025 Budapest Verhalom utca. 31/D. I/8.
> @.: sebastien.baudry@baudry-engineering.com
> mobile.: +36-30-392-0279 / tel: +36-1-326-0241 / fax: +36-1-326-0241
> http://www.baudry-engineering.com
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend




view thread (4+ messages)  latest in thread

Message-ID: <049001c388bb$d637f840$0600a8c0@fix.ro>
Permalink:  ../049001c388bb$d637f840$0600a8c0@fix.ro/
Also on:    postgresql.org/message-id/049001c388bb$d637f840$0600a8c0@fix.ro

 · 

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: bc@vio.ro, sebastien.baudry@baudry-engineering.com
  Subject: Re: How to call a PL/pgSQL function in a PHP script?
  In-Reply-To: <049001c388bb$d637f840$0600a8c0@fix.ro>
  References: <KAECIKDEBEFAPMGIJGOGIEKCENAA.sbaudry@yahoo.com> <049001c388bb$d637f840$0600a8c0@fix.ro>

* 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