I try save to database attachments in base64 format
$sql = "INSERT INTO `attachments`(mp_id, at_source, at_format)
VALUES(".$id.", '".$attach['data']."', '".$attach['mimetype']."' )
";
Gettings error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '€čH•zøŻU… ¨@' at line 2
I think something is wriong with ''
quotes , how to insert base64 encoded file source ?
I'm add attachment: http://pastebin.com/srYbHTAS