Is it totally safe to insert array serialized with serialize() into db, or I should do addslashes(serialize($array)) before? Or there can be some mysql specific characters? Can I delete data or whatever with insert?
Is it totally safe to insert array serialized with serialize() into db, or I
Share
No it is not safe at all.
And you should never use
addslashesbutmysql_real_escape_stringinstead. Or even better, use PDO with prepared statements instead of escaping.