Hi all -<br><br>I have an sql query that needs to insert a serialized array as one of the columns.&nbsp; However, the serialized data never makes it properly into the DB, I think because db_query strips out the curly braces.&nbsp; Take the following serialized associative array:
<br><br><pre>&#39;a:2:{s:10:&quot;Cardiology&quot;;s:10:&quot;Cardiology&quot;;s:11:&quot;Dermatology&quot;;s:11:&quot;Dermatology&quot;;}&#39;</pre>This ends up being stored as &#39;a:2:s:10:&quot;Cardiology&quot;;s:10:&quot;Cardiology&quot;;s:11:Dermatology&quot;;s:11:Dermatology&quot;;&#39; (no curly braces), and I am therefore unable to unserialize() it.
<br><br>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 unserialize?<br><br>Thanks,<br>William<br><br>