note 77808 deleted from function.serialize by danbrown
| From: | danbrown@php.net | Date: | Mon, 20 Jun 2011 15:26:13 +0000 |
| Subject: | note 77808 deleted from function.serialize by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-180763@lists.php.net to get a copy of this message | ||
Note Submitter: aaron dot krohn at gmail dot com
----
@ nothanks
you should be able to prevent your serialized array from breaking the query by escaping it.
$nested_array = serialize($array);
$query_safe = mysql_real_escape_string($nested_array);