| From: | Andre Lopes <lopes80andre(at)gmail(dot)com> |
|---|---|
| To: | postgresql Forums <pgsql-general(at)postgresql(dot)org> |
| Subject: | PHP array to PlPgSQL arrat. How to? |
| Date: | 2011-03-05 19:22:32 |
| Message-ID: | AANLkTik0FEZnmWB-=NOWpv-390xPnVFUSj+SOuLT2-OS@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Hi,
I need to transform an PHP array to an PlPgSQL array. The PHP array is
like this:
[quote]
$arr = array(
0 => array(
"base64" => "ddfffffff",
"image_type" => "jpg",
"width" => "343",
"height" => "515",
"html_width_height" => 'width="343" height="515"',
"mime" => "image/jpeg"
),
1 => array(
"base64" => "ddfffffffddddd",
"image_type" => "jpg",
"width" => "343",
"height" => "515",
"html_width_height" => 'width="343" height="515"',
"mime" => "image/jpeg"
)
);
[/quote]
How can I pass this kinf of PHP array to PlPgSQL?
Give me a clue.
Best Regards,
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Pavel Stehule | 2011-03-05 19:28:16 | Re: PHP array to PlPgSQL arrat. How to? |
| Previous Message | Raymond O'Donnell | 2011-03-05 17:02:35 | Re: Why count(*) doest use index? |