I have a problem. When I do an insert like so in php:
sql = \"INSERT INTO mytable (id, value) VALUES (\'sds83\',\'\".$EncryptedString.\"\')\";
You need to escape your $EncryptedString. Depending on the type of MySQL connection object/functions you are using, it could be like this:
$EncryptedString
$sql = " INSERT INTO mytable (id, value) VALUES ('sds83','" . mysql_real_escape_string($EncryptedString) . "')";