Re: Serialize

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




It's not safe... if the array contains strings which contain ' or " might screw your query... it's safe to escape the string result from serialize...

	Andy

phplist@xxxxxxx wrote:
Hi,

Is a serialized array a "safe" string to insert into a mysql text field? Or is a
function such as mysql_real_escape_string always needed?

regards
Simon.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux