From: Andy Shellam (Mailing Lists) <andy.shellam-lists@mailnetwork.co.uk>
To: Ganesh Laxmanmurthy <lganimys@yahoo.co.in>
Cc: pgsql-php@postgresql.org
Subject: Re: PLPGSQL - PHP data querying
Date: Wed, 06 Dec 2006 13:17:43 +0000
Message-ID: <4576C2F7.6010709@mailnetwork.co.uk> (raw)
In-Reply-To: <938994.73369.qm@web8504.mail.in.yahoo.com>
References: <938994.73369.qm@web8504.mail.in.yahoo.com>
Why do you specifically want to do this through PlPgsql?
You can just as easily do a query directly from PHP to get a recordset,
and it gives less server overhead.
Andy.
Ganesh Laxmanmurthy wrote:
> Dear All:
>
> Regarding PHP & PLPGSQL Programming. I am new to
> PLPGSQL.
>
> I wish someone suggest me the solution for the below
> requirement even though it is very simple as I am new
> to the subject and could not find an answer which I
> can understand.
>
> I have a table by name 'users' with several columns.
>
> I want to query "select * from users' from PHP to
> Postgresql through PLPGSQL.
>
> Therefore I need
>
> 1. The practical syntax for the PLPGSQL function
>
> 2. The practical syntax for calling and displaying of
> the returned recordset from PHP.
>
> With the above I would be able to develop futher
> programs.
>
> I would be thankful for the same.
>
> Thanks in advance
>
> Regards
>
> Ganesh
>
>
>
> __________________________________________________________
> Yahoo! India Answers: Share what you know. Learn something new
> http://in.answers.yahoo.com/
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>
> !DSPAM:37,45769b3640411164512130!
>
>
>
--
Andy Shellam
NetServe Support Team
the Mail Network
"an alternative in a standardised world"
p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834
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: andy.shellam-lists@mailnetwork.co.uk, lganimys@yahoo.co.in
Subject: Re: PLPGSQL - PHP data querying
In-Reply-To: <4576C2F7.6010709@mailnetwork.co.uk>
References: <938994.73369.qm@web8504.mail.in.yahoo.com> <4576C2F7.6010709@mailnetwork.co.uk>
* 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