Hi Kafooey!
On Thu, 07 Aug 2003 18:10:00 GMT, kafooey <kafooey@yahoo.co.uk> wrote:
[color=blue]
>On Thu, 07 Aug 2003 17:51:37 GMT, "Alexander Ross"
><alexross@bleen.net> wrote:
>[color=green]
>>I know your first reaction will be "WHY?!?!" But can it be done? Can I store
>>a php array in a postgresql database?[/color]
>
>Yes you can - but you'll have to explode the array first and put it
>into a suitable data structure.
>[/color]
I would rather suggest to store it as a serialized object.[color=blue]
>Still can't understand why though :)[/color]
Example: i have a set of classes (see signature) that provide an easy
edit interface to any amount of tables. Also, it creates a "filter
block", where the user can filter by criteria on table fields.
If I wanted to add saveable filters, I would store them as an array of
the filter-criteria, serialized. This means I can have one table for
saved filters, not as many as I have tables.
HTh, Jochen
--
Jochen Daum - CANS Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces.
http://sourceforge.net/projects/phpdbedittk/