By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,776 Members | 1,777 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,776 IT Pros & Developers. It's quick & easy.

PHP arrays and postgresql

P: n/a
This may not be the best place to ask the question, but I've already searched
the PHP archive and code snippet sites.

I'm trying to find a way to store and then retrieve a PHP array in
my pg database.

Has anyone written some code to do this?
--
Mike Nolan

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to ma*******@postgresql.org)

Nov 12 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Wednesday 07 January 2004 20:45, Mike Nolan wrote:
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.
If not, can you explain a little more?
--
Richard Huxton
Archonet Ltd

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 12 '05 #2

P: n/a
> > 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

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Nov 12 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.