From: | Achilleus Mantzios <achill(at)matrix(dot)gatewaynet(dot)com> |
---|---|
To: | joseph(at)asti(dot)dost(dot)gov(dot)ph |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: how do i provide array parameters for my functions in php |
Date: | 2002-06-13 16:30:27 |
Message-ID: | Pine.LNX.4.44.0206131925310.26545-100000@matrix.gatewaynet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
On Thu, 13 Jun 2002 joseph(at)asti(dot)dost(dot)gov(dot)ph wrote:
> i have just finished creating a function that has an array of integers as its
> parameter. what i would like to know is how do i declare/execute my function
> in php. i tried several syntax
> e.g.
> $arrvalue - an array of integers
>
> $strquery = "select functionname($arrvalue)";
> $strquery = "select functionname($arrvalue[])";
If you wanna do a select i think is safe to construct the select statement
as a string (including your arrays).
E.g.
$strquery = "select func('{1,2,3,4}')";
Now if your function outputs an array, thats a little bit more complicated
lies in the php field and you need to ask pgsql-php or something like
that.
>
> what is the right syntax
> TIA
> joseph
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
--
Achilleus Mantzios
S/W Engineer
IT dept
Dynacom Tankers Mngmt
tel: +30-10-8981112
fax: +30-10-8981877
email: achill(at)matrix(dot)gatewaynet(dot)com
mantzios(at)softlab(dot)ece(dot)ntua(dot)gr
From | Date | Subject | |
---|---|---|---|
Next Message | Jan Wieck | 2002-06-13 16:59:54 | Re: make a unique index for foreign keys? |
Previous Message | Beth Gatewood | 2002-06-13 16:23:35 | Re: make a unique index for foreign keys? |