X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id BFAE3D1B461 for ; Thu, 8 Jan 2004 00:23:49 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 29122-05 for ; Wed, 7 Jan 2004 20:23:09 -0400 (AST) Received: from gw.tssi.com (gw.tssi.com [198.147.197.1]) by svr1.postgresql.org (Postfix) with ESMTP id 5460BD1C94F for ; Wed, 7 Jan 2004 20:23:00 -0400 (AST) Received: from gw.tssi.com (nolan@gw.tssi.com [127.0.0.1] (may be forged)) by gw.tssi.com (8.12.6/8.12.6) with ESMTP id i080N38S025199; Wed, 7 Jan 2004 18:23:04 -0600 Received: (from nolan@localhost) by gw.tssi.com (8.12.6/8.12.6/Submit) id i080N3KP025198; Wed, 7 Jan 2004 18:23:03 -0600 From: Mike Nolan Message-Id: <200401080023.i080N3KP025198@gw.tssi.com> Subject: Re: PHP arrays and postgresql To: dev@archonet.com (Richard Huxton) Date: Wed, 7 Jan 2004 18:23:03 -0600 (CST) Cc: pgsql-general@postgresql.org (pgsql general list) In-Reply-To: <200401072159.32238.dev@archonet.com> from "Richard Huxton" at Jan 07, 2004 09:59:32 PM X-Mailer: ELM [version 2.5 PL3] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/295 X-Sequence-Number: 55323 > > I'm trying to find a way to store and then retrieve a PHP array in > > my pg database. > > If you mean as one value, look into the serialise() function - that's probably > what you want. Serialize is just what I was looking for but not coming up with. (My 18 year old son just got a kick out of the answer, he doesn't know PHP but when I was explaining the problem to him last night he said, "You mean like 'serialize' in Javascript?") Thanks to everyone who responded. -- Mike Nolan