pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
user function and bind
3+ messages / 3 participants
[nested] [flat]

* user function and bind
@ 2010-05-19 14:56 David Harel <hareldvd@gmail.com>
  2010-05-19 16:11 ` Re: user function and bind Justin Graf <justin@magwerks.com>
  2010-05-19 17:16 ` Re: user function and bind Gary Chambers <gwchamb@gmail.com>
  0 siblings, 2 replies; 3+ messages in thread

From: David Harel @ 2010-05-19 14:56 UTC (permalink / raw)
  To: pgsql-sql

Hi,
I need an example how to write user function with columns binding and 
how to use it on PHP

-- 
Thanks.

David Harel,

==================================

Home office +972 77 7657645
Cellular:   +972 54 4534502
Snail Mail: Amuka
             D.N Merom Hagalil
             13802
             Israel
Email:      hareldvd@ergolight-sw.com

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: user function and bind
  2010-05-19 14:56 user function and bind David Harel <hareldvd@gmail.com>
@ 2010-05-19 16:11 ` Justin Graf <justin@magwerks.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Justin Graf @ 2010-05-19 16:11 UTC (permalink / raw)
  To: David Harel <hareldvd@gmail.com>; +Cc: pgsql-sql

On 5/19/2010 9:56 AM, David Harel wrote:
> Hi,
> I need an example how to write user function with columns binding and 
> how to use it on PHP
> -- 
> Thanks.
>    


I'm not sure i understand your   question.  You want a function to 
return record type correct??








All legitimate Magwerks Corporation quotations are sent in a .PDF file attachment with a unique ID number generated by our proprietary quotation system. Quotations received via any other form of communication will not be honored.

CONFIDENTIALITY NOTICE: This e-mail, including attachments, may contain legally privileged, confidential or other information proprietary to Magwerks Corporation and is intended solely for the use of the individual to whom it addresses. If the reader of this e-mail is not the intended recipient or authorized agent, the reader is hereby notified that any unauthorized viewing, dissemination, distribution or copying of this e-mail is strictly prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and destroy all occurrences of this e-mail immediately.
Thank you.

Attachments:

justin.vcf (text/x-vcard, 256B) download begin:vcard fn:Justin Graf n:Graf;Justin org:Magwerks Corp adr:;;501 Commerce Drive;Danville ;IN;46122;USA email;internet:justin@magwerks.com tel;work:317-241-8011 ext 703 tel;fax:317-241-8015 x-mozilla-html:FALSE url:www.magwerks.com version:2.1 end:vcard
^ permalink raw reply [nested|flat] 3+ messages in thread

* Re: user function and bind
  2010-05-19 14:56 user function and bind David Harel <hareldvd@gmail.com>
@ 2010-05-19 17:16 ` Gary Chambers <gwchamb@gmail.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Gary Chambers @ 2010-05-19 17:16 UTC (permalink / raw)
  To: David Harel <hareldvd@gmail.com>; +Cc: pgsql-sql

David,

> I need an example how to write user function with columns binding and how to
> use it on PHP

If I'm understanding your request correctly:

$dbh = pgpconnect("dbname=db host=dbhost user=dbuser password=pw");
$query = 'SELECT * FROM table WHERE x=$1 AND y=$2 AND z=$3';
$stmt = pg_query_params($dbh, $query, array($x, $y, $z));

-- Gary Chambers

/* Nothing fancy and nothing Microsoft! */



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2010-05-19 17:16 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-05-19 14:56 user function and bind David Harel <hareldvd@gmail.com>
2010-05-19 16:11 ` Justin Graf <justin@magwerks.com>
2010-05-19 17:16 ` Gary Chambers <gwchamb@gmail.com>

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