note 6055 deleted from unserialize by ronabop
| From: | ronabop@php.net | Date: | Sun, 03 Sep 2000 11:03:37 +0000 |
| Subject: | note 6055 deleted from unserialize by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-4065@lists.php.net to get a copy of this message | ||
Also, if you're using serialize() on query data (to which slashes have been automatically
added) you need to be careful to remove the slashes before serializing it. So an insert might look
like this:
<PRE>
mysql_db_query($DB, "INSERT INTO mytable (myarray) VALUES
('".addslashes(serialize(stripslashes($myarray)))."')");
</PRE>
That seemed to solve a problem I was having, anyway.