[development] db_query and serialized arrays
william.darren at gmail.com
Mon Sep 3 18:53:47 UTC 2007
Hi all -
I have an sql query that needs to insert a serialized array as one of the
columns. However, the serialized data never makes it properly into the DB,
I think because db_query strips out the curly braces. Take the following
serialized associative array:
This ends up being stored as
(no curly braces), and I am therefore unable to unserialize() it.
What is the way around this, other than fudging it and taking my result as a
string and manually pushing the curly braces into place before attempting to
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the development