I am trying to store some data in a mysql database through a php script. The data that I am trying to store is encrypted and so this means that it stores something like this:
'$ñŠN4Åßv4ñ•ÜÅØµÙÜqÚö4Þ§ƒÑìèêù¬a+µºeN¶†)‰ož¥´™³¯BâPqt‡š3ÊØyGyŠí!¬‚ƒý`,È-SFn…,˜EïÕ¬_¯ ÛÆ1y©aœ«#˜¼öe÷·2,¢‹éUËx‰0ý`ΪÄÅŒ1²ljìí -{6“6{Êܤ^3ùˆ-G¹'
However, when I try to construct my query, I get an error connecting to the database as these encrypted values sometimes have quotation marks (' or ") and commas meaning that the query is wrongly interpreted.
Is there a way that I can ignore the commas and quotes in this data so that my query is properly interpreted and so a value like the one above can be stored?
Many Thanks.
(My query works when I simply put in plaintext and no encrypted data)